Xapian::ExpandDeciderFilterTerms Class Reference

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

#include <expanddecider.h>

Inheritance diagram for Xapian::ExpandDeciderFilterTerms:

Inheritance graph
[legend]
Collaboration diagram for Xapian::ExpandDeciderFilterTerms:

Collaboration graph
[legend]

List of all members.

Public Member Functions

template<class Iterator >
 ExpandDeciderFilterTerms (Iterator reject_begin, Iterator reject_end)
 The two iterators specify a list of terms to be rejected.
virtual bool operator() (const std::string &term) const
 Do we want this term in the ESet?

Private Attributes

std::set< std::string > rejects


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 80 of file expanddecider.h.


Constructor & Destructor Documentation

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_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 93 of file expanddecider.h.


Member Function Documentation

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

Do we want this term in the ESet?

Parameters:
term The term to test.

Implements Xapian::ExpandDecider.

Definition at line 38 of file expanddecider.cc.

References rejects.


Member Data Documentation

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

Definition at line 81 of file expanddecider.h.

Referenced by operator()().


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

Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.