Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Fixedary node is tree node that when initialized does not permit change of the number of its children. More...
#include <tree_base.hpp>
Public Member Functions | |
FixedaryNode (ext::ptr_vector< Data > c) | |
Constructor of the node from vector of children. More... | |
template<typename ... Types> | |
FixedaryNode (Types &&... data) | |
Constructor of the node from pack of children. More... | |
~FixedaryNode () noexcept override=default | |
Destructor of the class. More... | |
FixedaryNode (const FixedaryNode &other) | |
Copy constructor of the class. More... | |
FixedaryNode (FixedaryNode &&other) noexcept | |
Move constructor of the class. More... | |
FixedaryNode & | operator= (const FixedaryNode &other) |
Copy operator of assignment. More... | |
FixedaryNode & | operator= (FixedaryNode &&other) noexcept |
Move operator of assignment. More... | |
const ext::ptr_vector< Data > & | getChildren () & |
Getter of the vector of children. More... | |
const ext::ptr_vector< Data > & | getChildren () const & |
Getter of the vector of children. More... | |
ext::ptr_vector< Data > && | getChildren () && |
Getter of the child nodes. More... | |
void | setChildren (ext::ptr_vector< Data > c) |
Setter of the vector of children. More... | |
Data & | getChild (size_t index) |
Getter of the child at given index. More... | |
const Data & | getChild (size_t index) const |
Getter of the child at given index. More... | |
template<class PositionIterator > | |
void | setChild (Data &&d, PositionIterator it) |
Setter of the single child of the node. More... | |
template<class PositionIterator > | |
void | setChild (const Data &d, PositionIterator it) |
Setter of the single child of the node. More... | |
void | setChild (const Data &d, size_t index) |
Setter of the single child of the node. More... | |
void | setChild (Data &&d, size_t index) |
Setter of the single child of the node. More... | |
ext::ptr_vector< Data >::iterator | begin () |
Getter of an iterator to the begining of children vector. More... | |
ext::ptr_vector< Data >::const_iterator | begin () const |
Getter of an iterator to the begining of children vector. More... | |
ext::ptr_vector< Data >::iterator | end () |
Getter of an iterator to the end of children vector. More... | |
ext::ptr_vector< Data >::const_iterator | end () const |
Getter of an iterator to the end of children vector. More... | |
Fixedary node is tree node that when initialized does not permit change of the number of its children.
Data | the base class of the actual tree nodes hierarchy on top of this one |
Base | the actual class from the actual tree nodes hierarchy |
|
inline |
Constructor of the node from vector of children.
c | the child nodes |
|
inline |
Constructor of the node from pack of children.
Types | ... the types of children |
data | ... the actual children |
|
overridedefaultnoexcept |
Destructor of the class.
|
inline |
Copy constructor of the class.
other | the other instance |
|
inlinenoexcept |
Move constructor of the class.
other | the other instance |
|
inline |
Getter of an iterator to the begining of children vector.
|
inline |
Getter of an iterator to the begining of children vector.
|
inline |
Getter of an iterator to the end of children vector.
|
inline |
Getter of an iterator to the end of children vector.
|
inline |
Getter of the child at given index.
index | the index to retrieve |
|
inline |
Getter of the child at given index.
index | the index to retrieve |
|
inline |
Getter of the vector of children.
|
inline |
Getter of the child nodes.
|
inline |
Getter of the vector of children.
|
inline |
Copy operator of assignment.
other | the other instance |
|
inlinenoexcept |
Move operator of assignment.
other | the other instance |
|
inline |
Setter of the single child of the node.
d | the new child node |
it | the position where to change the child |
|
inline |
Setter of the single child of the node.
d | the new child node |
index | the position where to change the child |
|
inline |
Setter of the single child of the node.
d | the new child node |
it | the position where to change the child |
|
inline |
Setter of the single child of the node.
d | the new child node |
index | the position where to change the child |
|
inline |
Setter of the vector of children.
c | the new child nodes in for of a vector |