xapian-core  2.0.0
Public Member Functions | Private Attributes | List of all members
CheckMatchDecider Class Reference
+ Inheritance diagram for CheckMatchDecider:
+ Collaboration diagram for CheckMatchDecider:

Public Member Functions

 CheckMatchDecider ()
 
bool operator() (const Xapian::Document &) const override
 Decide whether to accept a document. More...
 
bool was_called () const
 
- Public Member Functions inherited from Xapian::MatchDecider
 MatchDecider () noexcept
 Default constructor, needed by subclass constructors. More...
 
virtual ~MatchDecider ()
 Virtual destructor, because we have virtual methods. More...
 

Private Attributes

bool called
 

Detailed Description

Definition at line 486 of file api_backend.cc.

Constructor & Destructor Documentation

◆ CheckMatchDecider()

CheckMatchDecider::CheckMatchDecider ( )
inline

Definition at line 490 of file api_backend.cc.

Member Function Documentation

◆ operator()()

bool CheckMatchDecider::operator() ( const Xapian::Document doc) const
inlineoverridevirtual

Decide whether to accept a document.

This is called by the matcher for documents before adding them to the candidate result set. Note that documents accepted here may still not appear in the final MSet (better documents may be found, for example).

Parameters
docThe document to consider.
Returns
true if the document should be considered further.

Implements Xapian::MatchDecider.

Definition at line 492 of file api_backend.cc.

◆ was_called()

bool CheckMatchDecider::was_called ( ) const
inline

Definition at line 497 of file api_backend.cc.

Referenced by DEFINE_TESTCASE().

Member Data Documentation

◆ called

bool CheckMatchDecider::called
mutableprivate

Definition at line 487 of file api_backend.cc.


The documentation for this class was generated from the following file: