strusAnalyzer
0.17
|
Structure desribing a result of a token pattern matcher. More...
#include <patternMatcherResult.hpp>
Public Types | |
typedef analyzer::PatternMatcherResultItem | Item |
Public Member Functions | |
PatternMatcherResult () | |
Default constructor. More... | |
PatternMatcherResult (const char *name_, const char *value_, int ordpos_, int ordend_, const Position &origpos_, const Position &origend_, const std::vector< Item > &itemlist_=std::vector< Item >()) | |
Constructor. More... | |
PatternMatcherResult (const PatternMatcherResult &o) | |
Copy constructor. More... | |
~PatternMatcherResult () | |
Destructor. More... | |
const std::vector< Item > & | items () const |
List of result items defined by variables assigned to nodes of the pattern of the match. More... | |
![]() | |
PatternMatcherResultItem () | |
Default constructor. More... | |
PatternMatcherResultItem (const char *name_, const char *value_, int ordpos_, int ordend_, const Position &origpos_, const Position &origend_) | |
Constructor. More... | |
PatternMatcherResultItem (const PatternMatcherResultItem &o) | |
Copy constructor. More... | |
~PatternMatcherResultItem () | |
Destructor. More... | |
const char * | name () const |
Name of the item, defined by the variable assigned to the match. More... | |
const char * | value () const |
Pointer to value of the item. More... | |
int | ordpos () const |
Ordinal (counting) position of the match (resp. the first term of the match) More... | |
int | ordend () const |
Ordinal (counting) end position of the match. More... | |
const Position & | origpos () const |
Start of the result item in the original source. More... | |
const Position & | origend () const |
End of the result item in the original source (first byte after the item) More... | |
Structure desribing a result of a token pattern matcher.
|
inline |
Default constructor.
|
inline |
Constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
List of result items defined by variables assigned to nodes of the pattern of the match.