TermGroup Class Reference

A group of terms separated only by whitespace. More...

Collaboration diagram for TermGroup:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TermGroup ()
void add_term (Term *term)
 Add a Term object to this TermGroup object.
void set_empty_ok ()
 Set the empty_ok flag.
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
bool empty_ok
 Controls how to handle a group where all terms are stopwords.


Detailed Description

A group of terms separated only by whitespace.

Definition at line 1317 of file queryparser_internal.cc.


Constructor & Destructor Documentation

TermGroup::TermGroup (  )  [inline]

Definition at line 1328 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 1350 of file queryparser_internal.cc.

References terms.


Member Function Documentation

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

Add a Term object to this TermGroup object.

Definition at line 1331 of file queryparser_internal.cc.

References terms.

Referenced by yy_reduce().

Query * TermGroup::as_group ( State state  )  const

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 1344 of file queryparser_internal.cc.

void TermGroup::set_empty_ok (  )  [inline]

Set the empty_ok flag.

Definition at line 1336 of file queryparser_internal.cc.

References empty_ok.

Referenced by yy_reduce().


Member Data Documentation

bool TermGroup::empty_ok [private]

Controls how to handle a group where all terms are stopwords.

If true, then as_group() returns NULL. If false, then the stopword status of the terms is ignored.

Definition at line 1325 of file queryparser_internal.cc.

Referenced by as_group(), and set_empty_ok().

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

Definition at line 1318 of file queryparser_internal.cc.

Referenced by add_term(), as_group(), and ~TermGroup().


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

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.