Base class for range processors. More...
Public Member Functions | |
RangeProcessor () | |
Default constructor. More... | |
RangeProcessor (Xapian::valueno slot_, const std::string &str_=std::string(), unsigned flags_=0) | |
Constructor. More... | |
virtual | ~RangeProcessor () |
Destructor. | |
Xapian::Query | check_range (const std::string &b, const std::string &e) |
virtual Xapian::Query | operator() (const std::string &begin, const std::string &end) |
Check for a valid range of this type. More... | |
RangeProcessor * | release () |
const RangeProcessor * | release () const |
Protected Attributes | |
Xapian::valueno | slot |
std::string | str |
unsigned | flags |
Base class for range processors.
|
inline |
Default constructor.
|
inline |
Constructor.
slot_ | Which value slot to generate ranges over. |
str_ | A string to look for to recognise values as belonging to this range (as a prefix by default, or as a suffix if flags Xapian::RP_SUFFIX is specified). |
flags_ | Zero or more of the following flags, combined with bitwise-or:
|
|
virtual |
Check for a valid range of this type.
begin | The start of the range as specified in the query string by the user. |
end | The end of the range as specified in the query string by the user (empty string for no upper limit). |
Reimplemented in Xapian::NumberRangeProcessor, and Xapian::DateRangeProcessor.
Referenced by Xapian::QueryParser::add_valuerangeprocessor().