aimstil  5.0.5
til::NaryTree< T, N >::const_iterator Class Reference

Const iterator on n-ary trees. More...

#include <cathier/binary_tree.h>

Inheritance diagram for til::NaryTree< T, N >::const_iterator:
Collaboration diagram for til::NaryTree< T, N >::const_iterator:

Public Types

typedef const_iterator Self
 
typedef iterator_base< const NodeBase
 
typedef Base::value_type value_type
 

Public Member Functions

 const_iterator ()
 
 const_iterator (const Node *p)
 
Self child (std::size_t i) const
 Get an iterator on the i-th child. More...
 

Detailed Description

template<typename T, std::size_t N>
class til::NaryTree< T, N >::const_iterator

Const iterator on n-ary trees.

On top of traditional, STL iterator features, the class offers the possibility to go to one of its children via the child() member function.

Definition at line 229 of file binary_tree.h.

Member Typedef Documentation

◆ Base

template<typename T, std::size_t N>
typedef iterator_base<const Node> til::NaryTree< T, N >::const_iterator::Base

Definition at line 234 of file binary_tree.h.

◆ Self

template<typename T, std::size_t N>
typedef const_iterator til::NaryTree< T, N >::const_iterator::Self

Definition at line 233 of file binary_tree.h.

◆ value_type

template<typename T, std::size_t N>
typedef Base::value_type til::NaryTree< T, N >::const_iterator::value_type

Definition at line 235 of file binary_tree.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<typename T, std::size_t N>
til::NaryTree< T, N >::const_iterator::const_iterator ( )
inline

Definition at line 240 of file binary_tree.h.

◆ const_iterator() [2/2]

template<typename T, std::size_t N>
til::NaryTree< T, N >::const_iterator::const_iterator ( const Node p)
inlineexplicit

Definition at line 241 of file binary_tree.h.

Member Function Documentation

◆ child()

template<typename T, std::size_t N>
Self til::NaryTree< T, N >::const_iterator::child ( std::size_t  i) const
inline

Get an iterator on the i-th child.

Definition at line 246 of file binary_tree.h.


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