xapian-core  1.4.25
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
 Decide whether we want this document to be in the MSet. More...
- Public Member Functions inherited from Xapian::MatchDecider
 MatchDecider ()
 Default constructor. More...
virtual ~MatchDecider ()
 Destructor. More...

Private Attributes

string needle

Detailed Description

Definition at line 497 of file api_db.cc.

Constructor & Destructor Documentation

◆ GrepMatchDecider()

GrepMatchDecider::GrepMatchDecider ( const string &  needle_)

Definition at line 500 of file api_db.cc.

Member Function Documentation

◆ operator()()

bool GrepMatchDecider::operator() ( const Xapian::Document doc) const

Decide whether we want this document to be in the MSet.

docThe document to test.
true if the document is acceptable, or false if the document should be excluded from the MSet.

Implements Xapian::MatchDecider.

Definition at line 503 of file api_db.cc.

References Xapian::Document::get_data().

Member Data Documentation

◆ needle

string GrepMatchDecider::needle

Definition at line 498 of file api_db.cc.

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