xapian-core
1.4.26
|
Base class for value range processors. More...
#include <queryparser.h>
Public Member Functions | |
ValueRangeProcessor () | |
Default constructor. More... | |
virtual | ~ValueRangeProcessor () |
Destructor. More... | |
virtual Xapian::valueno | operator() (std::string &begin, std::string &end)=0 |
Check for a valid range of this type. More... | |
ValueRangeProcessor * | release () |
Start reference counting this object. More... | |
const ValueRangeProcessor * | release () const |
Start reference counting this object. More... | |
Public Member Functions inherited from Xapian::Internal::opt_intrusive_base | |
opt_intrusive_base (const opt_intrusive_base &) | |
opt_intrusive_base & | operator= (const opt_intrusive_base &) |
opt_intrusive_base () | |
Construct object which is initially not reference counted. More... | |
virtual | ~opt_intrusive_base () |
void | ref () const |
void | unref () const |
Private Member Functions | |
void | operator= (const ValueRangeProcessor &) |
Don't allow assignment. More... | |
ValueRangeProcessor (const ValueRangeProcessor &) | |
Don't allow copying. More... | |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::opt_intrusive_base | |
unsigned | _refs |
Reference count. More... | |
Protected Member Functions inherited from Xapian::Internal::opt_intrusive_base | |
void | release () const |
Start reference counting. More... | |
Base class for value range processors.
Definition at line 404 of file queryparser.h.
|
private |
Don't allow copying.
|
inline |
Default constructor.
Definition at line 414 of file queryparser.h.
|
virtual |
Destructor.
Definition at line 62 of file queryparser.cc.
|
pure virtual |
Check for a valid range of this type.
[in,out] | begin | The start of the range as specified in the query string by the user. This parameter is a non-const reference so the ValueRangeProcessor can modify it to return the value to start the range with. |
[in,out] | end | The end of the range. This is also a non-const reference so it can be modified. |
Implemented in AuthorValueRangeProcessor, TestValueRangeProcessor, Xapian::NumberValueRangeProcessor, Xapian::DateValueRangeProcessor, and Xapian::StringValueRangeProcessor.
|
private |
Don't allow assignment.
|
inline |
Start reference counting this object.
You can hand ownership of a dynamically allocated ValueRangeProcessor object to Xapian by calling release() and then passing the object to a Xapian method. Xapian will arrange to delete the object once it is no longer required.
Definition at line 442 of file queryparser.h.
Referenced by DEFINE_TESTCASE().
|
inline |
Start reference counting this object.
You can hand ownership of a dynamically allocated ValueRangeProcessor object to Xapian by calling release() and then passing the object to a Xapian method. Xapian will arrange to delete the object once it is no longer required.
Definition at line 454 of file queryparser.h.