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

Public Member Functions

 TestRangeProcessor (bool &destroyed_)
 
Xapian::Query operator() (const std::string &, const std::string &)
 Check for a valid range of this type. More...
 
- Public Member Functions inherited from Xapian::RangeProcessor
 RangeProcessor ()
 Default constructor. More...
 
 RangeProcessor (Xapian::valueno slot_, const std::string &str_=std::string(), unsigned flags_=0)
 Constructor. More...
 
virtual ~RangeProcessor ()
 Destructor. More...
 
Xapian::Query check_range (const std::string &b, const std::string &e)
 Check prefix/suffix on range. More...
 
RangeProcessorrelease ()
 Start reference counting this object. More...
 
const RangeProcessorrelease () 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_baseoperator= (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 Attributes

DestroyedFlag destroyed
 

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...
 
- Protected Attributes inherited from Xapian::RangeProcessor
Xapian::valueno slot
 The value slot to process. More...
 
std::string str
 The prefix (or suffix with RP_SUFFIX) string to look for. More...
 
unsigned flags
 Flags. More...
 

Detailed Description

Definition at line 262 of file api_none.cc.

Constructor & Destructor Documentation

◆ TestRangeProcessor()

TestRangeProcessor::TestRangeProcessor ( bool &  destroyed_)
inline

Definition at line 266 of file api_none.cc.

Member Function Documentation

◆ operator()()

Xapian::Query TestRangeProcessor::operator() ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Check for a valid range of this type.

Override this method to implement your own range handling.

Parameters
beginThe start of the range as specified in the query string by the user.
endThe end of the range as specified in the query string by the user (empty string for no upper limit).
Returns
An OP_VALUE_RANGE Query object (or if end.empty(), an OP_VALUE_GE Query object). Or if the range isn't one which this object can handle then Xapian::Query(Xapian::Query::OP_INVALID) will be returned.

Reimplemented from Xapian::RangeProcessor.

Definition at line 269 of file api_none.cc.

References Xapian::Query::MatchAll.

Member Data Documentation

◆ destroyed

DestroyedFlag TestRangeProcessor::destroyed
private

Definition at line 263 of file api_none.cc.


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