template<typename Node, typename Leaf, template< typename, typename > class _Map>
class Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeBranches
From a structural node of the NAryTree start many branches. Each Branch ends with a structural node. A structural node is either a Node from which start new branches or a Node that is associated with a Leaf. The NAryTree has no explicit structural root. It starts as a set of branches lead to a first set of Nodes. Therefore TreeBranches implement a set of branches, each branch leads to a Node.
Definition at line 157 of file NAryTree.hh.
template<typename Node, typename Leaf, template< typename, typename > class _Map>
template<typename NodeIterator >
Leaf& Diades::Utils::NAryTree< Node, Leaf, _Map >::TreeBranches::insertSuccessiveBranches |
( |
NodeIterator |
begin, |
|
|
NodeIterator |
end, |
|
|
const Leaf & |
info |
|
) |
| |
|
inline |
Insert a leaf associated with the Node range [begin,end[ Be aware that if a leaf already exists, it is replaced. If a branch associated to a range bigger than [begin,end[ already exists, it is removed.
- Parameters
-
begin | the starting iterator over a range of Nodes |
end | the ending iterator over a range of Nodes |
info | the piece of information that will be associated with the range in the tree |
- Returns
- a reference to the inserted leaf
Definition at line 230 of file NAryTree.hh.
References Diades::Utils::NAryTree< Node, Leaf, _Map >::insertSuccessiveBranches().