Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Tree node with any but fixed number of children. More...
#include <tree_base.hpp>
Public Member Functions | |
AnyaryNode (ext::ptr_array< Data, arity > c) | |
Constructor based on array of child nodes. More... | |
~AnyaryNode () noexcept override=default | |
Destructor of the class. More... | |
AnyaryNode (const AnyaryNode &other) | |
Copy constructor. More... | |
AnyaryNode (AnyaryNode &&other) noexcept | |
Move constructor. More... | |
AnyaryNode & | operator= (const AnyaryNode &other) |
Copy operator of assignment. More... | |
AnyaryNode & | operator= (AnyaryNode &&other) noexcept |
move operator of assignment. More... | |
const ext::ptr_array< Data, arity > & | getChildren () & |
Getter of the child nodes. More... | |
const ext::ptr_array< Data, arity > & | getChildren () const & |
Getter of the child nodes. More... | |
ext::ptr_array< Data, arity > && | getChildren () && |
Getter of the child nodes. More... | |
template<size_t N> | |
const Data & | getChild () const |
Getter of the child node based on compile time index. More... | |
template<size_t N> | |
Data & | getChild () |
Getter of the child node based on compile time index. More... | |
void | setChildren (ext::ptr_array< Data, arity > c) |
Setter of the child nodes. More... | |
template<size_t N> | |
void | setChild (const Data &d) |
Setter of the child node based on compile time index. More... | |
template<size_t N> | |
void | setChild (Data &&d) |
Setter of the child node based on compile time index. More... | |
ext::ptr_array< Data, arity >::iterator | begin () |
Getter of an iterator to the begining of children array. More... | |
ext::ptr_array< Data, arity >::const_iterator | begin () const |
Getter of an iterator to the begining of children array. More... | |
ext::ptr_array< Data, arity >::iterator | end () |
Getter of an iterator to the end of children array. More... | |
ext::ptr_array< Data, arity >::const_iterator | end () const |
Getter of an iterator to the end of children array. More... | |
Tree node with any but fixed number of children.
Data | the base class of the actual tree nodes hierarchy on top of this one |
arity | the number of child nodes |
Base | the actual class from the actual tree nodes hierarchy |
|
inline |
Constructor based on array of child nodes.
c | the array of child nodes |
|
overridedefaultnoexcept |
Destructor of the class.
|
inline |
Copy constructor.
|
inlinenoexcept |
Move constructor.
|
inline |
Getter of an iterator to the begining of children array.
|
inline |
Getter of an iterator to the begining of children array.
|
inline |
Getter of an iterator to the end of children array.
|
inline |
Getter of an iterator to the end of children array.
|
inline |
Getter of the child node based on compile time index.
N | the index of the node |
|
inline |
Getter of the child node based on compile time index.
N | the index of the node |
|
inline |
Getter of the child nodes.
|
inline |
Getter of the child nodes.
|
inline |
Getter of the child nodes.
|
inlinenoexcept |
move operator of assignment.
|
inline |
Copy operator of assignment.
|
inline |
Setter of the child node based on compile time index.
N | the index of the node |
|
inline |
Setter of the child node based on compile time index.
N | the index of the node |
|
inline |
Setter of the child nodes.
c | child nodes |