xapian-core
1.4.26
|
ExpandDecider subclass which rejects terms in a specified list. More...
#include <expanddecider.h>
Public Member Functions | |
template<class Iterator > | |
ExpandDeciderFilterTerms (Iterator reject_begin, Iterator reject_end) | |
The two iterators specify a list of terms to be rejected. 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::set< std::string > | rejects |
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 rejects terms in a specified list.
ExpandDeciderFilterTerms provides an easy way to filter out terms from a fixed list when generating an ESet.
Definition at line 119 of file expanddecider.h.
|
inline |
The two iterators specify a list of terms to be rejected.
reject_begin | Begin iterator for the list of terms to reject. It can be any input_iterator type which returns std::string or char * (e.g. TermIterator or char **). |
reject_end | End iterator for the list of terms to reject. |
Definition at line 132 of file expanddecider.h.
|
virtual |
Do we want this term in the ESet?
term | The term to test. |
Implements Xapian::ExpandDecider.
Definition at line 39 of file expanddecider.cc.
|
private |
Definition at line 120 of file expanddecider.h.