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

Virtual base class for expand decider functor. More...

#include <expanddecider.h>

+ Inheritance diagram for Xapian::ExpandDecider:
+ Collaboration diagram for Xapian::ExpandDecider:

Public Member Functions

 ExpandDecider ()
 Default constructor. More...
 
virtual bool operator() (const std::string &term) const =0
 Do we want this term in the ESet? More...
 
virtual ~ExpandDecider ()
 Virtual destructor, because we have virtual methods. More...
 
ExpandDeciderrelease ()
 Start reference counting this object. More...
 
const ExpandDeciderrelease () 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 ExpandDecider &)
 Don't allow assignment. More...
 
 ExpandDecider (const ExpandDecider &)
 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

Virtual base class for expand decider functor.

Definition at line 37 of file expanddecider.h.

Constructor & Destructor Documentation

◆ ExpandDecider() [1/2]

Xapian::ExpandDecider::ExpandDecider ( const ExpandDecider )
private

Don't allow copying.

◆ ExpandDecider() [2/2]

Xapian::ExpandDecider::ExpandDecider ( )
inline

Default constructor.

Definition at line 47 of file expanddecider.h.

◆ ~ExpandDecider()

Xapian::ExpandDecider::~ExpandDecider ( )
virtual

Virtual destructor, because we have virtual methods.

Definition at line 30 of file expanddecider.cc.

Member Function Documentation

◆ operator()()

virtual bool Xapian::ExpandDecider::operator() ( const std::string &  term) const
pure virtual

Do we want this term in the ESet?

Parameters
termThe term to test.

Implemented in TestExpandDecider, EvenParityExpandFunctor, Xapian::ExpandDeciderFilterPrefix, Xapian::ExpandDeciderFilterTerms, and Xapian::ExpandDeciderAnd.

◆ operator=()

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

Don't allow assignment.

◆ release() [1/2]

ExpandDecider* Xapian::ExpandDecider::release ( )
inline

Start reference counting this object.

You can hand ownership of a dynamically allocated ExpandDecider 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 65 of file expanddecider.h.

Referenced by DEFINE_TESTCASE().

◆ release() [2/2]

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

Start reference counting this object.

You can hand ownership of a dynamically allocated ExpandDecider 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 77 of file expanddecider.h.


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