|
| BinaryNode (const Data &l, const Data &r) |
| Constructor of the class accepting the two child nodes. More...
|
|
| BinaryNode (Data &&l, Data &&r) |
| Constructor of the class accepting the two child nodes. More...
|
|
Data & | getLeft () |
| Getter of the first child of the node. More...
|
|
const Data & | getLeft () const |
| Getter of the first child of the node. More...
|
|
void | setLeft (const Data &l) |
| Setter of the first child of the node. More...
|
|
void | setLeft (Data &&l) |
| Setter of the first child of the node. More...
|
|
Data & | getRight () |
| Getter of the second child of the node. More...
|
|
const Data & | getRight () const |
| Getter of the second child of the node. More...
|
|
void | setRight (const Data &r) |
| Setter of the second child of the node. More...
|
|
void | setRight (Data &&r) |
| Setter of the second child of the node. More...
|
|
| AnyaryNode (ext::ptr_array< Data, arity > c) |
| Constructor based on array of child nodes. More...
|
|
| AnyaryNode (const AnyaryNode &other) |
| Copy constructor. More...
|
|
| AnyaryNode (AnyaryNode &&other) noexcept |
| Move constructor. More...
|
|
| ~AnyaryNode () noexcept override=default |
| Destructor of the class. 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...
|
|
const Data & | getChild () const |
| Getter of the child node based on compile time index. More...
|
|
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...
|
|
void | setChild (const Data &d) |
| Setter of the child node based on compile time index. More...
|
|
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...
|
|
template<class Data, class Base = Data>
class ext::BinaryNode< Data, Base >
Binary node is specialisation of Anyary node to two children.
- Template Parameters
-
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 |