xapian-core  1.4.27
Public Member Functions | Private Member Functions | List of all members
Xapian::FieldProcessor Class Referenceabstract

Base class for field processors. More...

#include <queryparser.h>

+ Inheritance diagram for Xapian::FieldProcessor:
+ Collaboration diagram for Xapian::FieldProcessor:

Public Member Functions

 FieldProcessor ()
 Default constructor. More...
 
virtual ~FieldProcessor ()
 Destructor. More...
 
virtual Xapian::Query operator() (const std::string &str)=0
 Convert a field-prefixed string to a Query object. More...
 
FieldProcessorrelease ()
 Start reference counting this object. More...
 
const FieldProcessorrelease () 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 Member Functions

void operator= (const FieldProcessor &)
 Don't allow assignment. More...
 
 FieldProcessor (const FieldProcessor &)
 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...
 

Detailed Description

Base class for field processors.

Definition at line 729 of file queryparser.h.

Constructor & Destructor Documentation

◆ FieldProcessor() [1/2]

Xapian::FieldProcessor::FieldProcessor ( const FieldProcessor )
private

Don't allow copying.

◆ FieldProcessor() [2/2]

Xapian::FieldProcessor::FieldProcessor ( )
inline

Default constructor.

Definition at line 739 of file queryparser.h.

◆ ~FieldProcessor()

FieldProcessor::~FieldProcessor ( )
virtual

Destructor.

Definition at line 64 of file queryparser.cc.

Member Function Documentation

◆ operator()()

virtual Xapian::Query Xapian::FieldProcessor::operator() ( const std::string &  str)
pure virtual

Convert a field-prefixed string to a Query object.

Parameters
strThe string to convert.
Returns
Query object corresponding to str.

Implemented in DateRangeFieldProcessor, HostFieldProcessor, TitleFieldProcessor, and TestFieldProcessor.

◆ operator=()

void Xapian::FieldProcessor::operator= ( const FieldProcessor )
private

Don't allow assignment.

◆ release() [1/2]

FieldProcessor* Xapian::FieldProcessor::release ( )
inline

Start reference counting this object.

You can transfer ownership of a dynamically allocated FieldProcessor 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 759 of file queryparser.h.

Referenced by DEFINE_TESTCASE().

◆ release() [2/2]

const FieldProcessor* Xapian::FieldProcessor::release ( ) const
inline

Start reference counting this object.

You can transfer ownership of a dynamically allocated FieldProcessor 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 771 of file queryparser.h.


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