DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Member Functions | Private Attributes | List of all members
Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeLeaf Class Reference

Public Member Functions

 TreeLeaf (const Leaf &leaf)
 
virtual bool isLeaf () const
 
Leaf & leaf ()
 
const Leaf & leaf () const
 
- Public Member Functions inherited from Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeElement
template<typename NodeIterator >
bool getLeaf (NodeIterator begin, NodeIterator end, Leaf &result) const
 

Private Attributes

Leaf _leaf
 

Detailed Description

template<typename Node, typename Leaf, template< typename, typename > class _Map>
class Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeLeaf

A TreeLeaf is a leaf of the NAryTree. It hold a Leaf piece of information (Leaf is copyable)

Definition at line 106 of file NAryTree.hh.

Constructor & Destructor Documentation

◆ TreeLeaf()

template<typename Node, typename Leaf, template< typename, typename > class _Map>
Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeLeaf::TreeLeaf ( const Leaf &  leaf)
inline

Definition at line 112 of file NAryTree.hh.

Member Function Documentation

◆ isLeaf()

template<typename Node, typename Leaf, template< typename, typename > class _Map>
virtual bool Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeLeaf::isLeaf ( ) const
inlinevirtual
Returns
true as a TreeLeaf

Implements Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeElement.

Definition at line 121 of file NAryTree.hh.

◆ leaf() [1/2]

template<typename Node, typename Leaf, template< typename, typename > class _Map>
Leaf& Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeLeaf::leaf ( )
inline
Returns
the Leaf information (non-const)

Definition at line 131 of file NAryTree.hh.

◆ leaf() [2/2]

template<typename Node, typename Leaf, template< typename, typename > class _Map>
const Leaf& Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeLeaf::leaf ( ) const
inline
Returns
the Leaf information (const)

Definition at line 141 of file NAryTree.hh.

Member Data Documentation

◆ _leaf

template<typename Node, typename Leaf, template< typename, typename > class _Map>
Leaf Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeLeaf::_leaf
private

Definition at line 109 of file NAryTree.hh.


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