xapian-core  1.4.26
Public Member Functions | List of all members
AuthorValueRangeProcessor Struct Reference
+ Inheritance diagram for AuthorValueRangeProcessor:
+ Collaboration diagram for AuthorValueRangeProcessor:

Public Member Functions

 AuthorValueRangeProcessor ()
 
Xapian::valueno operator() (std::string &begin, std::string &end)
 Check for a valid range of this type. More...
 
- Public Member Functions inherited from Xapian::ValueRangeProcessor
 ValueRangeProcessor ()
 Default constructor. More...
 
virtual ~ValueRangeProcessor ()
 Destructor. More...
 
ValueRangeProcessorrelease ()
 Start reference counting this object. More...
 
const ValueRangeProcessorrelease () 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
 

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...
 

Detailed Description

Definition at line 2068 of file api_queryparser.cc.

Constructor & Destructor Documentation

◆ AuthorValueRangeProcessor()

AuthorValueRangeProcessor::AuthorValueRangeProcessor ( )
inline

Definition at line 2069 of file api_queryparser.cc.

Member Function Documentation

◆ operator()()

Xapian::valueno AuthorValueRangeProcessor::operator() ( std::string &  begin,
std::string &  end 
)
inlinevirtual

Check for a valid range of this type.

Parameters
[in,out]beginThe 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]endThe end of the range. This is also a non-const reference so it can be modified.
Returns
If this ValueRangeProcessor recognises the range BEGIN..END it returns the value slot number to range filter on. Otherwise it returns Xapian::BAD_VALUENO.

Implements Xapian::ValueRangeProcessor.

Definition at line 2071 of file api_queryparser.cc.

References Xapian::BAD_VALUENO, startswith(), and Xapian::Unicode::tolower().


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