xapian-core  1.4.21
Public Member Functions | Public Attributes | Private Attributes | List of all members
State Class Reference

Parser State shared between the lexer and the parser. More...

+ Collaboration diagram for State:

Public Member Functions

 State (QueryParser::Internal *qpi_, unsigned flags_)
 
string stem_term (const string &term)
 
void add_to_stoplist (const Term *term)
 
void add_to_unstem (const string &term, const string &unstemmed)
 
Termrange (const string &a, const string &b)
 
Query::op default_op () const
 
bool is_stopword (const Term *term) const
 
Database get_database () const
 
const Stopperget_stopper () const
 
size_t stoplist_size () const
 
void stoplist_resize (size_t s)
 
Xapian::termcount get_max_wildcard_expansion () const
 
int get_max_wildcard_type () const
 
Xapian::termcount get_max_partial_expansion () const
 
int get_max_partial_type () const
 

Public Attributes

Query query
 
const char * error = NULL
 
unsigned flags
 
Query::op effective_default_op
 

Private Attributes

QueryParser::Internalqpi
 

Detailed Description

Parser State shared between the lexer and the parser.

Definition at line 230 of file queryparser_internal.cc.

Constructor & Destructor Documentation

◆ State()

State::State ( QueryParser::Internal qpi_,
unsigned  flags_ 
)
inline

Definition at line 239 of file queryparser_internal.cc.

References is_positional().

Member Function Documentation

◆ add_to_stoplist()

void State::add_to_stoplist ( const Term term)
inline

Definition at line 253 of file queryparser_internal.cc.

References Term::name, and Xapian::QueryParser::Internal::stoplist.

Referenced by TermGroup::as_group().

◆ add_to_unstem()

void State::add_to_unstem ( const string &  term,
const string &  unstemmed 
)
inline

Definition at line 257 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::unstem.

◆ default_op()

Query::op State::default_op ( ) const
inline

Definition at line 288 of file queryparser_internal.cc.

Referenced by TermGroup::as_group().

◆ get_database()

Database State::get_database ( ) const
inline

Definition at line 296 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::db.

Referenced by TermGroup::as_group().

◆ get_max_partial_expansion()

Xapian::termcount State::get_max_partial_expansion ( ) const
inline

◆ get_max_partial_type()

int State::get_max_partial_type ( ) const
inline

◆ get_max_wildcard_expansion()

Xapian::termcount State::get_max_wildcard_expansion ( ) const
inline

◆ get_max_wildcard_type()

int State::get_max_wildcard_type ( ) const
inline

◆ get_stopper()

const Stopper* State::get_stopper ( ) const
inline

Definition at line 300 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stopper.

Referenced by TermGroup::as_group().

◆ is_stopword()

bool State::is_stopword ( const Term term) const
inline

Definition at line 292 of file queryparser_internal.cc.

References Term::name, and Xapian::QueryParser::Internal::stopper.

◆ range()

Term* State::range ( const string &  a,
const string &  b 
)
inline

◆ stem_term()

string State::stem_term ( const string &  term)
inline

Definition at line 249 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stemmer.

◆ stoplist_resize()

void State::stoplist_resize ( size_t  s)
inline

Definition at line 308 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stoplist.

Referenced by TermGroup::as_group().

◆ stoplist_size()

size_t State::stoplist_size ( ) const
inline

Definition at line 304 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stoplist.

Referenced by TermGroup::as_group().

Member Data Documentation

◆ effective_default_op

Query::op State::effective_default_op

Definition at line 237 of file queryparser_internal.cc.

◆ error

const char* State::error = NULL

Definition at line 235 of file queryparser_internal.cc.

Referenced by Xapian::QueryParser::Internal::parse_query().

◆ flags

unsigned State::flags

Definition at line 236 of file queryparser_internal.cc.

Referenced by TermGroup::as_group(), and Terms::create().

◆ qpi

QueryParser::Internal* State::qpi
private

Definition at line 231 of file queryparser_internal.cc.

◆ query

Query State::query

Definition at line 234 of file queryparser_internal.cc.

Referenced by Xapian::QueryParser::Internal::parse_query().


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