#include <queryparser.h>


Public Member Functions | |
| SimpleStopper () | |
| Default constructor. | |
| template<class Iterator > | |
| SimpleStopper (Iterator begin, Iterator end) | |
| Initialise from a pair of iterators. | |
| void | add (const std::string &word) |
| Add a single stop word. | |
| virtual bool | operator() (const std::string &term) const |
| Is term a stop-word? | |
| virtual std::string | get_description () const |
| Return a string describing this object. | |
Private Attributes | |
| std::set< std::string > | stop_words |
Definition at line 56 of file queryparser.h.
| Xapian::SimpleStopper::SimpleStopper | ( | ) | [inline] |
| Xapian::SimpleStopper::SimpleStopper | ( | Iterator | begin, | |
| Iterator | end | |||
| ) | [inline] |
| void Xapian::SimpleStopper::add | ( | const std::string & | word | ) | [inline] |
Add a single stop word.
Definition at line 77 of file queryparser.h.
Referenced by test_qp_stopword_group1().
| string SimpleStopper::get_description | ( | ) | const [virtual] |
Return a string describing this object.
Reimplemented from Xapian::Stopper.
Definition at line 45 of file queryparser.cc.
References stop_words.
Referenced by DEFINE_TESTCASE().
| virtual bool Xapian::SimpleStopper::operator() | ( | const std::string & | term | ) | const [inline, virtual] |
Is term a stop-word?
| term | The term to test. |
Implements Xapian::Stopper.
Definition at line 79 of file queryparser.h.
std::set<std::string> Xapian::SimpleStopper::stop_words [private] |