strusAnalyzer  0.17
Classes | Public Member Functions | List of all members
strus::analyzer::QueryTermExpression Class Reference

Expression of a query terms as result of a query analysis. More...

#include <queryTermExpression.hpp>

Classes

class  Instruction
 Query instruction. More...
 

Public Member Functions

 QueryTermExpression ()
 Default constructor. More...
 
 QueryTermExpression (const QueryTermExpression &o)
 Copy constructor. More...
 
const std::vector< Instruction > & instructions () const
 Get the list of query instructions. More...
 
const analyzer::QueryTermterm (int idx) const
 Get the argument of a term instruction. More...
 
void pushTerm (const analyzer::QueryTerm &term_)
 Add a search index term to the query. More...
 
void pushOperator (int operatorId, int nofOperands)
 Add an instruction. More...
 

Detailed Description

Expression of a query terms as result of a query analysis.

Constructor & Destructor Documentation

strus::analyzer::QueryTermExpression::QueryTermExpression ( )
inline

Default constructor.

strus::analyzer::QueryTermExpression::QueryTermExpression ( const QueryTermExpression o)
inline

Copy constructor.

Member Function Documentation

const std::vector<Instruction>& strus::analyzer::QueryTermExpression::instructions ( ) const
inline

Get the list of query instructions.

Returns
the list
void strus::analyzer::QueryTermExpression::pushOperator ( int  operatorId,
int  nofOperands 
)
inline

Add an instruction.

Parameters
[in]operatorIdid of the operator
[in]nofOperandsnumber of operands
void strus::analyzer::QueryTermExpression::pushTerm ( const analyzer::QueryTerm term_)
inline

Add a search index term to the query.

Parameters
[in]termterm to add
const analyzer::QueryTerm& strus::analyzer::QueryTermExpression::term ( int  idx) const
inline

Get the argument of a term instruction.

Parameters
[in]idxindex of instruction refering to a term (Instruction::idx)

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