Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ext::NullaryNode< Data, Base > Class Template Reference

Nullary node is specialisation of Anyary node to no children. More...

#include <tree_base.hpp>

Inheritance diagram for ext::NullaryNode< Data, Base >:
[legend]
Collaboration diagram for ext::NullaryNode< Data, Base >:
[legend]

Public Member Functions

 NullaryNode ()
 The default constructor of the class. More...
 
- Public Member Functions inherited from ext::AnyaryNode< Data, 0, Data >
 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...
 
AnyaryNodeoperator= (const AnyaryNode &other)
 Copy operator of assignment. More...
 
AnyaryNodeoperator= (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...
 

Detailed Description

template<class Data, class Base = Data>
class ext::NullaryNode< Data, Base >

Nullary node is specialisation of Anyary node to no children.

Template Parameters
Datathe base class of the actual tree nodes hierarchy on top of this one
Basethe actual class from the actual tree nodes hierarchy

Constructor & Destructor Documentation

◆ NullaryNode()

template<class Data , class Base = Data>
ext::NullaryNode< Data, Base >::NullaryNode ( )
inline

The default constructor of the class.


The documentation for this class was generated from the following file: