State Class Reference

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

Collaboration diagram for State:

Collaboration graph
[legend]
List of all members.

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)
valueno value_range (Query &q, Term *a, Term *b)
Query::op default_op () const
bool is_stopword (const Term *term) const
Database get_database () const

Public Attributes

Query query
const char * error
unsigned flags

Private Attributes

QueryParser::Internalqpi

Detailed Description

Parser State shared between the lexer and the parser.

Definition at line 179 of file queryparser_internal.cc.


Constructor & Destructor Documentation

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

Definition at line 187 of file queryparser_internal.cc.


Member Function Documentation

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

Definition at line 190 of file queryparser_internal.cc.

References qpi, and Xapian::QueryParser::Internal::stemmer.

void State::add_to_stoplist ( const Term term  )  [inline]

Definition at line 194 of file queryparser_internal.cc.

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

Referenced by TermGroup::as_group().

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

Definition at line 198 of file queryparser_internal.cc.

References qpi, and Xapian::QueryParser::Internal::unstem.

valueno State::value_range ( Query q,
Term a,
Term b 
) [inline]

Definition at line 202 of file queryparser_internal.cc.

References Xapian::BAD_VALUENO, error, Term::name, qpi, and Xapian::QueryParser::Internal::valrangeprocs.

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

Definition at line 226 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::default_op, and qpi.

Referenced by TermGroup::as_group().

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

Definition at line 228 of file queryparser_internal.cc.

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

Referenced by TermGroup::as_group().

Database State::get_database (  )  const [inline]

Definition at line 232 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::db, and qpi.

Referenced by TermGroup::as_group(), Term::as_partial_query(), and Term::as_wildcarded_query().


Member Data Documentation

QueryParser::Internal* State::qpi [private]

Definition at line 180 of file queryparser_internal.cc.

Referenced by add_to_stoplist(), add_to_unstem(), default_op(), get_database(), is_stopword(), stem_term(), and value_range().

Query State::query

Definition at line 183 of file queryparser_internal.cc.

const char* State::error

Definition at line 184 of file queryparser_internal.cc.

Referenced by value_range().

unsigned State::flags

Definition at line 185 of file queryparser_internal.cc.

Referenced by TermGroup::as_group().


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.