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

Public Member Functions

 AuthorRangeProcessor ()
 
Xapian::Query operator() (const std::string &b, const std::string &e) override
 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
 

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 2108 of file api_queryparser.cc.

Constructor & Destructor Documentation

◆ AuthorRangeProcessor()

AuthorRangeProcessor::AuthorRangeProcessor ( )
inline

Definition at line 2109 of file api_queryparser.cc.

Member Function Documentation

◆ operator()()

Xapian::Query AuthorRangeProcessor::operator() ( const std::string &  begin,
const std::string &  end 
)
inlineoverridevirtual

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 2111 of file api_queryparser.cc.

References Xapian::RangeProcessor::operator()(), and Xapian::Unicode::tolower().


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