xapian-core
1.4.26
|
Abstract base class for stop-word decision functor. More...
#include <queryparser.h>
Public Member Functions | |
Stopper () | |
Default constructor. More... | |
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. More... | |
virtual std::string | get_description () const |
Return a string describing this object. More... | |
Stopper * | release () |
Start reference counting this object. More... | |
const Stopper * | release () 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_base & | operator= (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 Stopper &) |
Don't allow assignment. More... | |
Stopper (const Stopper &) | |
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... | |
Abstract base class for stop-word decision functor.
If you just want to use an existing stopword list, see Xapian::SimpleStopper.
Definition at line 50 of file queryparser.h.
|
private |
Don't allow copying.
|
inline |
Default constructor.
Definition at line 60 of file queryparser.h.
|
inlinevirtual |
Class has virtual methods, so provide a virtual destructor.
Definition at line 69 of file queryparser.h.
|
virtual |
Return a string describing this object.
Reimplemented in Xapian::SimpleStopper.
Definition at line 42 of file queryparser.cc.
|
pure virtual |
Is term a stop-word?
term | The term to test. |
Implemented in TestStopper, and Xapian::SimpleStopper.
|
private |
Don't allow assignment.
|
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.
Definition at line 81 of file queryparser.h.
Referenced by DEFINE_TESTCASE().
|
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.
Definition at line 93 of file queryparser.h.