Abstract base class for stop-word decision functor.
More...
#include <queryparser.h>
|
| Stopper () |
| Default constructor.
|
|
virtual bool | operator() (const std::string &term) const =0 |
| Is term a stop-word?
|
|
virtual | ~Stopper () |
| Class has virtual methods, so provide a virtual destructor.
|
|
virtual std::string | get_description () const |
| Return a string describing this object.
|
|
Stopper * | release () |
| Start reference counting this object.
|
|
const Stopper * | release () const |
| Start reference counting this object.
|
|
Abstract base class for stop-word decision functor.
If you just want to use an existing stopword list, see Xapian::SimpleStopper.
◆ get_description()
virtual std::string Xapian::Stopper::get_description |
( |
| ) |
const |
|
virtual |
◆ operator()()
virtual bool Xapian::Stopper::operator() |
( |
const std::string & |
term | ) |
const |
|
pure virtual |
◆ release() [1/2]
Stopper * Xapian::Stopper::release |
( |
| ) |
|
|
inline |
Start reference counting this object.
You can transfer 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 transfer 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: