xapian-core  1.4.21
Public Member Functions | Public Attributes | List of all members
QueryBuilderEnv Struct Reference

The environment used by the steps when building a query. More...

+ Collaboration diagram for QueryBuilderEnv:

Public Member Functions

 QueryBuilderEnv (unsigned int maxtermsperfield_, unsigned int maxchildren_)
 
Xapian::Query pop ()
 Pop a query from the front of the list of pieces, and return it. More...
 
list< Xapian::Query >::iterator pick (unsigned int num)
 Get an iterator pointing to the "num"th element in pieces. More...
 

Public Attributes

list< Xapian::Querypieces
 Workspace for the query builder steps. More...
 
unsigned int maxtermsperfield
 
unsigned int maxchildren
 

Detailed Description

The environment used by the steps when building a query.

Definition at line 61 of file soaktest_queries.cc.

Constructor & Destructor Documentation

◆ QueryBuilderEnv()

QueryBuilderEnv::QueryBuilderEnv ( unsigned int  maxtermsperfield_,
unsigned int  maxchildren_ 
)
inline

Definition at line 68 of file soaktest_queries.cc.

Member Function Documentation

◆ pick()

list<Xapian::Query>::iterator QueryBuilderEnv::pick ( unsigned int  num)
inline

Get an iterator pointing to the "num"th element in pieces.

Definition at line 83 of file soaktest_queries.cc.

Referenced by combine_AND(), combine_NOT(), combine_OR(), and combine_XOR().

◆ pop()

Xapian::Query QueryBuilderEnv::pop ( )
inline

Pop a query from the front of the list of pieces, and return it.

Definition at line 75 of file soaktest_queries.cc.

Referenced by QueryBuilder::make_query().

Member Data Documentation

◆ maxchildren

unsigned int QueryBuilderEnv::maxchildren

Definition at line 66 of file soaktest_queries.cc.

Referenced by combine_AND(), combine_OR(), and combine_XOR().

◆ maxtermsperfield

unsigned int QueryBuilderEnv::maxtermsperfield

Definition at line 65 of file soaktest_queries.cc.

Referenced by push_leaf_N().

◆ pieces

list<Xapian::Query> QueryBuilderEnv::pieces

Workspace for the query builder steps.

Definition at line 63 of file soaktest_queries.cc.

Referenced by combine_AND(), combine_NOT(), combine_OR(), combine_XOR(), and push_leaf_N().


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