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

Structure describing a typed query term. More...

#include <queryTerm.hpp>

Public Member Functions

 QueryTerm ()
 Default constructor. More...
 
 QueryTerm (const QueryTerm &o)
 Copy constructor. More...
 
 QueryTerm (const std::string &t, const std::string &v, int l)
 Constructor. More...
 
const std::string & type () const
 Get the type name of the term. More...
 
const std::string & value () const
 Get the value of the term. More...
 
int len () const
 Get the length of the term (ordinal position count) More...
 
void setLen (int len_)
 Set the length of the term (ordinal position count) More...
 

Detailed Description

Structure describing a typed query term.

Constructor & Destructor Documentation

strus::analyzer::QueryTerm::QueryTerm ( )
inline

Default constructor.

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

Copy constructor.

strus::analyzer::QueryTerm::QueryTerm ( const std::string &  t,
const std::string &  v,
int  l 
)
inline

Constructor.

Parameters
[in]tname of the term
[in]vvalue of the term
[in]llength of the term

Member Function Documentation

int strus::analyzer::QueryTerm::len ( ) const
inline

Get the length of the term (ordinal position count)

Returns
ordinal position count of the term
void strus::analyzer::QueryTerm::setLen ( int  len_)
inline

Set the length of the term (ordinal position count)

Parameters
[in]len_length (term count) of the term
const std::string& strus::analyzer::QueryTerm::type ( ) const
inline

Get the type name of the term.

Returns
type name of the term
const std::string& strus::analyzer::QueryTerm::value ( ) const
inline

Get the value of the term.

Returns
value of the term

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