xapian-core  1.4.25
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
TermGroup Class Reference

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

+ Collaboration diagram for TermGroup:

Public Member Functions

 ~TermGroup ()
 
void add_term (Term *term)
 Add a Term object to this TermGroup object. More...
 
void set_empty_ok ()
 Set the empty_ok flag. More...
 
Queryas_group (State *state) const
 Convert to a Xapian::Query * using default_op. More...
 

Static Public Member Functions

static TermGroupcreate (Term *t1, Term *t2)
 Factory function - ensures heap allocation. More...
 

Private Member Functions

 TermGroup (Term *t1, Term *t2)
 

Private Attributes

vector< Term * > terms
 
bool empty_ok
 Controls how to handle a group where all terms are stopwords. More...
 

Detailed Description

A group of terms separated only by whitespace.

Definition at line 890 of file queryparser_internal.cc.

Constructor & Destructor Documentation

◆ TermGroup()

TermGroup::TermGroup ( Term t1,
Term t2 
)
inlineprivate

Definition at line 900 of file queryparser_internal.cc.

◆ ~TermGroup()

TermGroup::~TermGroup ( )
inline

Definition at line 911 of file queryparser_internal.cc.

Member Function Documentation

◆ add_term()

void TermGroup::add_term ( Term term)
inline

Add a Term object to this TermGroup object.

Definition at line 918 of file queryparser_internal.cc.

Referenced by yy_reduce().

◆ as_group()

Query * TermGroup::as_group ( State state) const

◆ create()

static TermGroup* TermGroup::create ( Term t1,
Term t2 
)
inlinestatic

Factory function - ensures heap allocation.

Definition at line 907 of file queryparser_internal.cc.

Referenced by yy_reduce().

◆ set_empty_ok()

void TermGroup::set_empty_ok ( )
inline

Set the empty_ok flag.

Definition at line 923 of file queryparser_internal.cc.

Referenced by yy_reduce().

Member Data Documentation

◆ empty_ok

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

◆ terms

vector<Term *> TermGroup::terms
private

Definition at line 891 of file queryparser_internal.cc.


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