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

Public Member Functions

virtual bool isLeaf () const =0
 
template<typename NodeIterator >
bool getLeaf (NodeIterator begin, NodeIterator end, Leaf &result) const
 

Detailed Description

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

Abstract class. Any part of the tree (Branch or Leaf) is a TreeElement

Definition at line 43 of file NAryTree.hh.

Member Function Documentation

◆ getLeaf()

template<typename Node, typename Leaf, template< typename, typename > class _Map>
template<typename NodeIterator >
bool Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeElement::getLeaf ( NodeIterator  begin,
NodeIterator  end,
Leaf &  result 
) const
inline
Parameters
beginthe starting iterator over a range of Nodes
endthe ending iterator over a range of Nodes
resultthe Leaf that is associated to the nodes'range if it exists, undetermined otherwise
Returns
true if the leaf exists

Definition at line 61 of file NAryTree.hh.

References Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeBranches::find(), and Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeElement::isLeaf().

◆ isLeaf()

template<typename Node, typename Leaf, template< typename, typename > class _Map>
virtual bool Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeElement::isLeaf ( ) const
pure virtual

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