xapian-core  1.4.18
Public Member Functions | List of all members
Xapian::Stopper Class Referenceabstract

Base class for stop-word decision functor. More...

+ Inheritance diagram for Xapian::Stopper:

Public Member Functions

 Stopper ()
 Default constructor.
 
virtual bool operator() (const std::string &term) const =0
 Is term a stop-word? More...
 
virtual ~Stopper ()
 Class has virtual methods, so provide a virtual destructor.
 
virtual std::string get_description () const
 Return a string describing this object.
 
Stopperrelease ()
 Start reference counting this object. More...
 
const Stopperrelease () const
 Start reference counting this object. More...
 

Detailed Description

Base class for stop-word decision functor.

Member Function Documentation

◆ operator()()

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

Is term a stop-word?

Parameters
termThe term to test.

Implemented in Xapian::SimpleStopper.

◆ release() [1/2]

Stopper* Xapian::Stopper::release ( )
inline

Start reference counting this object.

You can hand ownership of a dynamically allocated Stopper 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.

◆ release() [2/2]

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

Start reference counting this object.

You can hand ownership of a dynamically allocated Stopper 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.


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