aimstil
5.0.5
|
Non-const iterator on n-ary trees. More...
#include <cathier/binary_tree.h>
Public Types | |
typedef iterator_base< Node > | Base |
typedef Base::value_type | value_type |
Public Member Functions | |
iterator () | |
iterator (Node *p) | |
iterator (Node *p, Node *parent, std::size_t branch) | |
iterator | child (std::size_t i) const |
Convertion into a Node pointer. More... | |
std::size_t | branch () const |
Node * | parent () const |
value_type & | operator* () |
value_type * | operator-> () |
Non-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. It also keeps track of where it is coming from (its parent and its branch number), because this information is necessary for new allocations.
Definition at line 264 of file binary_tree.h.
typedef iterator_base<Node> til::NaryTree< T, N >::iterator::Base |
Definition at line 268 of file binary_tree.h.
typedef Base::value_type til::NaryTree< T, N >::iterator::value_type |
Definition at line 269 of file binary_tree.h.
|
inline |
Definition at line 274 of file binary_tree.h.
|
inline |
Definition at line 275 of file binary_tree.h.
|
inline |
Definition at line 276 of file binary_tree.h.
|
inline |
Definition at line 290 of file binary_tree.h.
|
inline |
Convertion into a Node pointer.
Definition at line 284 of file binary_tree.h.
|
inline |
Definition at line 294 of file binary_tree.h.
|
inline |
Definition at line 295 of file binary_tree.h.
|
inline |
Definition at line 292 of file binary_tree.h.