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

Structure describing a token with an id used for pattern matching. More...

#include <patternLexem.hpp>

Inheritance diagram for strus::analyzer::PatternLexem:
strus::analyzer::Token

Public Member Functions

 PatternLexem ()
 Default constructor. More...
 
 PatternLexem (int id_, int ordpos_, const Position &origpos_, int origsize_)
 Constructor. More...
 
 PatternLexem (const PatternLexem &o)
 Copy constructor. More...
 
 ~PatternLexem ()
 Destructor. More...
 
int id () const
 Internal identifier of the term. More...
 
bool operator< (const PatternLexem &o) const
 
- Public Member Functions inherited from strus::analyzer::Token
 Token ()
 Default constructor. More...
 
 Token (int ordpos_, const Position &origpos_, int origsize_)
 Constructor. More...
 
 Token (const Token &o)
 Copy constructor. More...
 
int ordpos () const
 Get the ordinal (counting) position in the document. This value is used to assign the term position, that is not the byte position but a number taken from the enumeration of all distinct feature byte postions. More...
 
const Positionorigpos () const
 Get the start position of this token in the original document. More...
 
Positionorigpos ()
 Get the start position of this token in the original document. More...
 
int origsize () const
 Get the byte size of the translated token string (UTF-8) in the original document segment. More...
 
void setOrigPosition (const Position &origpos_)
 Set the original segment index of the token in the source. More...
 
void setOrigSize (int origsize_)
 Set the original size of the token in the source. More...
 
void setOrdpos (int ordpos_)
 Set the ordinal position of the token in the source (adjusted in case of multiple segments) More...
 
int compare (const Token &o) const
 Compare with another token. More...
 
bool operator< (const Token &o) const
 Compare operator for sort. More...
 

Detailed Description

Structure describing a token with an id used for pattern matching.

Constructor & Destructor Documentation

strus::analyzer::PatternLexem::PatternLexem ( )
inline

Default constructor.

strus::analyzer::PatternLexem::PatternLexem ( int  id_,
int  ordpos_,
const Position origpos_,
int  origsize_ 
)
inline

Constructor.

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

Copy constructor.

strus::analyzer::PatternLexem::~PatternLexem ( )
inline

Destructor.

Member Function Documentation

int strus::analyzer::PatternLexem::id ( ) const
inline

Internal identifier of the term.

bool strus::analyzer::PatternLexem::operator< ( const PatternLexem o) const
inline

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