xapian-core  1.4.27
Public Member Functions | Private Attributes | List of all members
Xapian::ExpandDeciderFilterTerms Class Reference

ExpandDecider subclass which rejects terms in a specified list. More...

#include <expanddecider.h>

+ Inheritance diagram for Xapian::ExpandDeciderFilterTerms:
+ Collaboration diagram for Xapian::ExpandDeciderFilterTerms:

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...
 
ExpandDeciderrelease ()
 Start reference counting this object. More...
 
const ExpandDeciderrelease () 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_baseoperator= (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ExpandDeciderFilterTerms()

template<class Iterator >
Xapian::ExpandDeciderFilterTerms::ExpandDeciderFilterTerms ( Iterator  reject_begin,
Iterator  reject_end 
)
inline

The two iterators specify a list of terms to be rejected.

Parameters
reject_beginBegin 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_endEnd iterator for the list of terms to reject.

Definition at line 132 of file expanddecider.h.

Member Function Documentation

◆ operator()()

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

Do we want this term in the ESet?

Parameters
termThe term to test.

Implements Xapian::ExpandDecider.

Definition at line 39 of file expanddecider.cc.

Member Data Documentation

◆ rejects

std::set<std::string> Xapian::ExpandDeciderFilterTerms::rejects
private

Definition at line 120 of file expanddecider.h.


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