Xapian::SimpleStopper Class Reference

Simple implementation of Stopper class - this will suit most users. More...

#include <queryparser.h>

Inheritance diagram for Xapian::SimpleStopper:

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

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Simple implementation of Stopper class - this will suit most users.

Definition at line 56 of file queryparser.h.


Constructor & Destructor Documentation

Xapian::SimpleStopper::SimpleStopper (  )  [inline]

Default constructor.

Definition at line 61 of file queryparser.h.

template<class Iterator >
Xapian::SimpleStopper::SimpleStopper ( Iterator  begin,
Iterator  end 
) [inline]

Initialise from a pair of iterators.

Definition at line 66 of file queryparser.h.


Member Function Documentation

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?

Parameters:
term The term to test.

Implements Xapian::Stopper.

Definition at line 79 of file queryparser.h.


Member Data Documentation

std::set<std::string> Xapian::SimpleStopper::stop_words [private]

Definition at line 57 of file queryparser.h.

Referenced by get_description().


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.