Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Extended tree pattern represented in its natural representation. The representation is so called ranked, therefore it consists of ranked symbols. The rank of the ranked symbol needs to be compatible with unsigned integer. Additionally the pattern contains a special wildcard symbol representing any subtree and other special wildcard symbols representing any label at the corresponding node in the match. More...
#include <RankedExtendedPattern.h>
Friends | |
ext::ostream & | operator<< (ext::ostream &out, const RankedExtendedPattern &instance) |
Additional Inherited Members | |
![]() | |
static void | registerComponent () |
static void | unregisterComponent () |
Extended tree pattern represented in its natural representation. The representation is so called ranked, therefore it consists of ranked symbols. The rank of the ranked symbol needs to be compatible with unsigned integer. Additionally the pattern contains a special wildcard symbol representing any subtree and other special wildcard symbols representing any label at the corresponding node in the match.
T = (A, C, W \in A, N \in A), A (Alphabet) = finite set of ranked symbols, C (Content) = pattern in its natural representation W (Wildcard) = special symbol representing any subtree N (Node Wildcards) = special symbol representing any label
SymbolType | used for the symbol part of the ranked symbol |
|
explicit |
Creates a new instance of the pattern with concrete alphabet, content, and wildcard.
subtreeWildcard | the wildcard symbol |
alphabet | the initial alphabet of the pattern |
pattern | the initial content in it's natural representation |
|
explicit |
Creates a new instance of the pattern with concrete content and wildcard. The alphabet is deduced from the content.
subtreeWildcard | the wildcard symbol |
pattern | the initial content in it's natural representation |
|
explicit |
Creates a new instance of the pattern based on RankedPattern, the alphabet is taken from the RankedPattern.
other | the pattern represented as RrankedPattern |
|
inline |
Adder of an alphabet symbols.
symbols | the new symbols to be added to the alphabet |
|
inline |
Adder of the node wildcard symbols.
symbols | the new symbols to be added to the node wildcard symbols |
|
inline |
Getter of the alphabet.
|
inline |
Getter of the alphabet.
ext::tree< common::ranked_symbol< SymbolType > > && tree::RankedExtendedPattern< SymbolType >::getContent | ( | ) | && |
Getter of the pattern representation.
const ext::tree< common::ranked_symbol< SymbolType > > & tree::RankedExtendedPattern< SymbolType >::getContent | ( | ) | const & |
Getter of the pattern representation.
|
inline |
Getter of the node wildcards.
|
inline |
Getter of the node wildcards.
|
inline |
Getter of the wildcard symbol.
|
inline |
Getter of the wildcard symbol.
void tree::RankedExtendedPattern< SymbolType >::nicePrint | ( | ext::ostream & | os | ) | const |
Nice printer of the tree natural representation
os | the output stream to print to |
|
inline |
The three way comparison implementation
other | the other instance |
other
.
|
inline |
The equality comparison implementation.
other | the other object to compare with. |
void tree::RankedExtendedPattern< SymbolType >::setTree | ( | ext::tree< common::ranked_symbol< SymbolType > > | pattern | ) |
Setter of the representation of the pattern.
TreeException | in same situations as checkAlphabet and checkArities |
pattern | new representation of the pattern. |
|
friend |
Print this object as raw representation to ostream.
out | ostream where to print |
instance | object to print |