10 #ifndef _STRUS_ANALYZER_PATTERN_LEXEM_HPP_INCLUDED
11 #define _STRUS_ANALYZER_PATTERN_LEXEM_HPP_INCLUDED
29 :
Token(ordpos_,origpos_,origsize_),m_id(id_){}
31 #if __cplusplus >= 201103L
38 :
Token(o),m_id(o.m_id){}
44 int id()
const {
return m_id;}
49 return (cmp == 0) ? m_id < o.m_id : cmp < 0;
~PatternLexem()
Destructor.
Definition: patternLexem.hpp:41
bool operator<(const PatternLexem &o) const
Definition: patternLexem.hpp:46
Structure describing a token with an id used for pattern matching.
Definition: patternLexem.hpp:20
Structure describing a token in the document by its start position and size.
PatternLexem(const PatternLexem &o)
Copy constructor.
Definition: patternLexem.hpp:37
int compare(const Token &o) const
Compare with another token.
Definition: token.hpp:75
PatternLexem()
Default constructor.
Definition: patternLexem.hpp:25
Structure describing a position in a document source by segment and offset.
int id() const
Internal identifier of the term.
Definition: patternLexem.hpp:44
PatternLexem(int id_, int ordpos_, const Position &origpos_, int origsize_)
Constructor.
Definition: patternLexem.hpp:28
Structure describing a position in a document source by segment and offset.
Definition: position.hpp:22
Structure describing a token in the document by its start and end position.
Definition: token.hpp:21