#include <valuesetmatchdecider.h>
Inheritance diagram for Xapian::ValueSetMatchDecider:
Public Member Functions | |
ValueSetMatchDecider (Xapian::valueno valuenum, bool inclusive) | |
void | add_value (const std::string &value) |
void | remove_value (const std::string &value) |
bool | operator() (const Xapian::Document &doc) const |
Xapian::ValueSetMatchDecider::ValueSetMatchDecider | ( | Xapian::valueno | valuenum, | |
bool | inclusive | |||
) |
Construct a ValueSetMatchDecider.
valuenum | The value slot number to look in. | |
inclusive | If true, match decider accepts documents which have a value in the specified slot which is a member of the test set; if false, match decider accepts documents which do not have a value in the specified slot. |
void Xapian::ValueSetMatchDecider::add_value | ( | const std::string & | value | ) | [inline] |
Add a value to the test set.
value | The value to add to the test set. |
void Xapian::ValueSetMatchDecider::remove_value | ( | const std::string & | value | ) | [inline] |
Remove a value from the test set.
value | The value to remove from the test set. |
bool Xapian::ValueSetMatchDecider::operator() | ( | const Xapian::Document & | doc | ) | const [virtual] |
Decide whether we want this document to be in the MSet.
Return true if the document is acceptable, or false if the document should be excluded from the MSet.
Implements Xapian::MatchDecider.