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 ~SimpleStopper ()
 Destructor.
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 51 of file queryparser.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 57 of file queryparser.h.

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

Initialise from a pair of iterators.

Definition at line 62 of file queryparser.h.

virtual Xapian::SimpleStopper::~SimpleStopper (  )  [inline, virtual]

Destructor.

Definition at line 80 of file queryparser.h.


Member Function Documentation

void Xapian::SimpleStopper::add ( const std::string &  word  )  [inline]

Add a single stop word.

Definition at line 72 of file queryparser.h.

virtual bool Xapian::SimpleStopper::operator() ( const std::string &  term  )  const [inline, virtual]

Is term a stop-word?

Implements Xapian::Stopper.

Definition at line 75 of file queryparser.h.

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.


Member Data Documentation

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

Definition at line 53 of file queryparser.h.

Referenced by get_description().


The documentation for this class was generated from the following files:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.