TermGroup Class Reference

List of all members.

Public Member Functions

 TermGroup ()
void add_term (Term *term)
 Add a Term object to this TermGroup object.
Queryas_group (State *state) const
 Convert to a Xapian::Query * using default_op.
void destroy ()
 Provide a way to explicitly delete an object of this class.

Protected Member Functions

 ~TermGroup ()
 Protected destructor, so an auto-variable of this type is a compile-time error - you must allocate this object with new.

Private Attributes

vector< Term * > terms

Detailed Description

Definition at line 1073 of file queryparser_internal.cc.


Constructor & Destructor Documentation

TermGroup::TermGroup (  )  [inline]

Definition at line 1077 of file queryparser_internal.cc.

TermGroup::~TermGroup (  )  [inline, protected]

Protected destructor, so an auto-variable of this type is a compile-time error - you must allocate this object with new.

Definition at line 1096 of file queryparser_internal.cc.


Member Function Documentation

void TermGroup::add_term ( Term term  )  [inline]

Add a Term object to this TermGroup object.

Definition at line 1080 of file queryparser_internal.cc.

Referenced by yy_reduce().

Query * TermGroup::as_group ( State state  )  const

Convert to a Xapian::Query * using default_op.

Definition at line 1105 of file queryparser_internal.cc.

References State::add_to_stoplist(), State::default_op(), State::flags, State::get_database(), State::is_stopword(), startswith(), Xapian::Database::synonym_keys_begin(), Xapian::Database::synonym_keys_end(), Xapian::Database::synonyms_begin(), Xapian::Database::synonyms_end(), and terms.

Referenced by yy_reduce().

void TermGroup::destroy (  )  [inline]

Provide a way to explicitly delete an object of this class.

The destructor is protected to prevent auto-variables of this type.

Definition at line 1090 of file queryparser_internal.cc.

Referenced by yy_destructor().


Member Data Documentation

vector<Term *> TermGroup::terms [private]

Definition at line 1074 of file queryparser_internal.cc.

Referenced by TermList::add_positional_term(), as_group(), TermList::as_opwindow_query(), and TermList::~TermList().


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