
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. | |
| Query * | as_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. | |
Definition at line 1317 of file queryparser_internal.cc.
| 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.
| 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().
Convert to a Xapian::Query * using default_op.
Definition at line 1359 of file queryparser_internal.cc.
References State::add_to_stoplist(), State::default_op(), empty_ok, State::flags, State::get_database(), State::get_stopper(), is_positional(), startswith(), State::stoplist_resize(), State::stoplist_size(), 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 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().
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().