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

Public Member Functions

 GrepMatchDecider (const string &needle_)
 
bool operator() (const Xapian::Document &doc) const override
 Decide whether to accept a document. More...
 
- 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

string needle
 

Detailed Description

Definition at line 339 of file api_db.cc.

Constructor & Destructor Documentation

◆ GrepMatchDecider()

GrepMatchDecider::GrepMatchDecider ( const string &  needle_)
inlineexplicit

Definition at line 342 of file api_db.cc.

Member Function Documentation

◆ operator()()

bool GrepMatchDecider::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 345 of file api_db.cc.

References Xapian::Document::get_data().

Member Data Documentation

◆ needle

string GrepMatchDecider::needle
private

Definition at line 340 of file api_db.cc.


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