30template <
class SymbolType = DefaultSymbolType >
36#include <ext/iostream>
37#include <ext/algorithm>
51#include "../ranked/RankedTree.h"
68template <
class SymbolType >
113 return this->
template accessComponent < GeneralAlphabet > ( ).get ( );
122 return std::move ( this->
template accessComponent < GeneralAlphabet > ( ).
get ( ) );
131 this->
template accessComponent < GeneralAlphabet > ( ).add ( symbols );
188 out <<
"(UnrankedTree";
190 out <<
" content = " << instance.
getContent ( );
203template <
class SymbolType >
205 checkAlphabet ( m_content );
208template <
class SymbolType >
212template <
class SymbolType >
216template <
class SymbolType >
221template <
class SymbolType >
223 return std::move ( m_content );
226template <
class SymbolType >
230 throw TreeException (
"Input symbols not in the alphabet." );
234template <
class SymbolType >
236 checkAlphabet ( data );
238 this->m_content = std::move ( data );
241template <
class SymbolType >
255template <
class SymbolType >
298template <
class SymbolType >
static ext::set< DefaultSymbolType > normalizeAlphabet(ext::set< SymbolType > &&symbols)
Definition: SymbolNormalize.h:50
Definition: components.hpp:181
static bool available(const tree::UnrankedTree< SymbolType > &, const SymbolType &)
Definition: UnrankedTree.h:279
static void valid(const tree::UnrankedTree< SymbolType > &, const SymbolType &)
Definition: UnrankedTree.h:289
static bool used(const tree::UnrankedTree< SymbolType > &tree, const SymbolType &symbol)
Definition: UnrankedTree.h:266
Definition: setComponents.hpp:26
Output iterator calling a callback function on assignment.
Definition: iterator.hpp:923
Class introducing a tree with interface trying to be close to the interface of standard library conta...
Definition: tree.hpp:52
const_prefix_iterator prefix_begin() const
Getter of the prefix iterator to the root node.
Definition: tree.hpp:904
const_prefix_iterator prefix_end() const
Getter of the prefix iterator one after the last node in the prefix traversal.
Definition: tree.hpp:914
Tree structure represented in its natural representation. The representation is so called ranked,...
Definition: RankedTree.h:72
static ext::set< SymbolType > unrankSymbols(const ext::set< common::ranked_symbol< SymbolType > > &alphabet)
Definition: TreeAuxiliary.h:82
static ext::tree< SymbolType > rankedToUnranked(const ext::tree< common::ranked_symbol< SymbolType > > &tree)
Definition: TreeAuxiliary.h:151
Definition: TreeException.h:15
static ext::tree< DefaultSymbolType > normalizeTree(ext::tree< SymbolType > &&tree)
Definition: TreeNormalize.h:29
Tree represented in its natural representation. The representation is so called unranked,...
Definition: UnrankedTree.h:69
void setTree(ext::tree< SymbolType > data)
Definition: UnrankedTree.h:235
const ext::set< SymbolType > & getAlphabet() const &
Definition: UnrankedTree.h:112
friend ext::ostream & operator<<(ext::ostream &out, const UnrankedTree &instance)
Definition: UnrankedTree.h:187
void nicePrint(ext::ostream &os) const
Definition: UnrankedTree.h:242
ext::set< SymbolType > && getAlphabet() &&
Definition: UnrankedTree.h:121
UnrankedTree(ext::set< SymbolType > alphabet, ext::tree< SymbolType > tree)
Creates a new instance of the pattern with concrete alphabet and content.
Definition: UnrankedTree.h:204
bool operator==(const UnrankedTree &other) const
Definition: UnrankedTree.h:175
void extendAlphabet(const ext::set< SymbolType > &symbols)
Definition: UnrankedTree.h:130
const ext::tree< SymbolType > & getContent() const &
Definition: UnrankedTree.h:217
Definition: BarSymbol.cpp:12
typename T::SymbolType SymbolType
Definition: ReachableStates.h:176
Definition: normalize.hpp:10
Definition: sigHandler.cpp:20
constexpr tuple< Elements &... > tie(Elements &... args) noexcept
Helper of extended tuple of references construction. The tuple is constructed to reffer to values in ...
Definition: tuple.hpp:218
auto begin(Container &&cont) -> decltype(std::forward(cont).begin())
Definition: iterator.hpp:900
void end()
Definition: measurements.cpp:19
auto & get(ext::ptr_array< Type, N > &tpl)
Specialisation of get function for pointer arrays.
Definition: ptr_array.hpp:693
Definition: BackwardOccurrenceTest.h:17
static tree::UnrankedTree< > eval(tree::UnrankedTree< SymbolType > &&value)
Definition: UnrankedTree.h:300
Definition: normalize.hpp:13