Object representing a pattern match program.
More...
#include <bindingObjects.hpp>
Object representing a pattern match program.
strus::PatternMatcher::PatternMatcher |
( |
| ) |
|
|
inline |
Appends the operations of 'o' to this.
- Parameters
-
void strus::PatternMatcher::attachVariable |
( |
const String & |
name_ | ) |
|
Add operation attach variable.
- Note
- The positions of the query matches of the referenced term or expression can be accessed through this variable in summarization.
- Parameters
-
[in] | name_ | name of the variable attached |
void strus::PatternMatcher::definePattern |
( |
const String & |
name_, |
|
|
bool |
visible |
|
) |
| |
Add operation push pattern.
- Parameters
-
[in] | name_ | name of the pattern created |
void strus::PatternMatcher::pushExpression |
( |
const String & |
opname_, |
|
|
unsigned int |
argc_, |
|
|
int |
range_ = 0 , |
|
|
unsigned int |
cardinality_ = 0 |
|
) |
| |
Add operation push expression.
- Parameters
-
[in] | opname_ | name of the expression operator |
[in] | argc_ | number of operands (topmost elements from stack) of the expression |
[in] | range_ | range number for the expression span in the document |
[in] | cardinality_ | number that specifies the minimum size of a subset or subset permutation to match |
void strus::PatternMatcher::pushPattern |
( |
const String & |
name_ | ) |
|
Add operation push term.
- Parameters
-
[in] | name_ | name of the referenced pattern |
void strus::PatternMatcher::pushTerm |
( |
const String & |
type_, |
|
|
const String & |
value_ |
|
) |
| |
Add operation push term.
- Parameters
-
[in] | type_ | query term type name |
[in] | value_ | query term value |
std::size_t strus::PatternMatcher::size |
( |
| ) |
const |
|
inline |
Get the number of items (sub expressions) on the stack as result of this expression.
- Returns
- the number of items (sub expressions)
friend class PatternMatchLoader |
|
friend |
The documentation for this class was generated from the following file: