Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Tree pattern represented in its natural representation. The representation is so called unranked, therefore it consists of unranked symbols. More...
#include <UnorderedUnrankedTree.h>
Public Member Functions | |
UnorderedUnrankedTree (ext::set< SymbolType > alphabet, ext::tree< SymbolType > tree) | |
Creates a new instance of the pattern with concrete alphabet and content. More... | |
UnorderedUnrankedTree (ext::tree< SymbolType > pattern) | |
Creates a new instance of the pattern with concrete content. The alphabet is deduced from the content. More... | |
UnorderedUnrankedTree (const UnrankedTree< SymbolType > &other) | |
Creates a new instance of the pattern based on UnrankedTree, the alphabet is created from the content of the UnrankedTree. More... | |
const ext::set< SymbolType > & | getAlphabet () const & |
ext::set< SymbolType > && | getAlphabet () && |
void | extendAlphabet (const ext::set< SymbolType > &symbols) |
const ext::tree< SymbolType > & | getContent () const & |
ext::tree< SymbolType > && | getContent () && |
void | setTree (ext::tree< SymbolType > data) |
auto | operator<=> (const UnorderedUnrankedTree &other) const |
bool | operator== (const UnorderedUnrankedTree &other) const |
void | nicePrint (ext::ostream &os) const |
![]() | |
void | accessComponent () |
Friends | |
ext::ostream & | operator<< (ext::ostream &out, const UnorderedUnrankedTree &instance) |
Additional Inherited Members | |
![]() | |
static void | registerComponent () |
static void | unregisterComponent () |
Tree pattern represented in its natural representation. The representation is so called unranked, therefore it consists of unranked symbols.
T = ( A, C ), A (Alphabet) = finite set of symbols, C (Content) = tree in its natural representation
SymbolType | used for the symbol of the alphabet |
|
explicit |
Creates a new instance of the pattern with concrete alphabet and content.
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. The alphabet is deduced from the content.
pattern | the initial content in it's natural representation |
|
explicit |
Creates a new instance of the pattern based on UnrankedTree, the alphabet is created from the content of the UnrankedTree.
other | the pattern represented as RankedNonlinearPattern |
|
inline |
Adder of an alphabet symbols.
symbols | the new symbols to be added to the alphabet |
|
inline |
Getter of the alphabet.
|
inline |
Getter of the alphabet.
ext::tree< SymbolType > && tree::UnorderedUnrankedTree< SymbolType >::getContent | ( | ) | && |
Getter of the pattern representation.
const ext::tree< SymbolType > & tree::UnorderedUnrankedTree< SymbolType >::getContent | ( | ) | const & |
Getter of the pattern representation.
void tree::UnorderedUnrankedTree< 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::UnorderedUnrankedTree< SymbolType >::setTree | ( | ext::tree< SymbolType > | data | ) |
Setter of the representation of the pattern.
TreeException | in same situations as checkAlphabet |
pattern | new representation of the pattern. |
|
friend |
Print this object as raw representation to ostream.
out | ostream where to print |
instance | object to print |