xapian-core
1.4.26
|
ExpandDecider subclass which restrict terms to a particular prefix. More...
#include <expanddecider.h>
Public Member Functions | |
ExpandDeciderFilterPrefix (const std::string &prefix_) | |
The parameter specify the prefix of terms to be retained. More... | |
virtual bool | operator() (const std::string &term) const |
Do we want this term in the ESet? More... | |
Public Member Functions inherited from Xapian::ExpandDecider | |
ExpandDecider () | |
Default constructor. More... | |
virtual | ~ExpandDecider () |
Virtual destructor, because we have virtual methods. More... | |
ExpandDecider * | release () |
Start reference counting this object. More... | |
const ExpandDecider * | 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 Attributes | |
std::string | prefix |
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... | |
ExpandDecider subclass which restrict terms to a particular prefix.
ExpandDeciderFilterPrefix provides an easy way to choose terms with a particular prefix when generating an ESet.
Definition at line 143 of file expanddecider.h.
|
inlineexplicit |
The parameter specify the prefix of terms to be retained.
prefix_ | restrict terms to the particular prefix_ |
Definition at line 150 of file expanddecider.h.
|
virtual |
Do we want this term in the ESet?
term | The term to test. |
Implements Xapian::ExpandDecider.
Definition at line 50 of file expanddecider.cc.
References startswith().
|
private |
Definition at line 144 of file expanddecider.h.