10 #ifndef _STRUS_ANALYZER_QUERY_TERM_HPP_INCLUDED
11 #define _STRUS_ANALYZER_QUERY_TERM_HPP_INCLUDED
26 :m_type(),m_value(),m_len(0){}
28 #if __cplusplus >= 201103L
35 :m_type(o.m_type),m_value(o.m_value),m_len(o.m_len){}
37 QueryTerm(
const std::string& t,
const std::string& v,
int l)
42 :m_type(t),m_value(v),m_len(l){}
46 const std::string&
type()
const {
return m_type;}
49 const std::string&
value()
const {
return m_value;}
52 int len()
const {
return m_len;}
56 void setLen(
int len_) {m_len = len_;}
const std::string & value() const
Get the value of the term.
Definition: queryTerm.hpp:49
void setLen(int len_)
Set the length of the term (ordinal position count)
Definition: queryTerm.hpp:56
const std::string & type() const
Get the type name of the term.
Definition: queryTerm.hpp:46
int len() const
Get the length of the term (ordinal position count)
Definition: queryTerm.hpp:52
QueryTerm(const QueryTerm &o)
Copy constructor.
Definition: queryTerm.hpp:34
QueryTerm()
Default constructor.
Definition: queryTerm.hpp:25
Structure describing a typed query term.
Definition: queryTerm.hpp:21