#include <tree.hpp>
Inherits matador::tree_iterator_base< T >.
Public Types | |
typedef tree_iterator_base< T >::t_node | node_type |
Public Types inherited from matador::tree_iterator_base< T > | |
typedef tree_iterator_base< T > | self |
typedef t_tree_node< T > | t_node |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
Public Member Functions | |
tree_iterator ()=default | |
tree_iterator (const tree_iterator< T > &x) | |
tree_iterator (const tree_iterator_base< T > &x) | |
tree_iterator (node_type *n) | |
tree_iterator< T > & | operator= (const tree_iterator< T > &x) |
tree_iterator< T > & | operator= (tree_iterator< T > &&x) noexcept |
Public Member Functions inherited from matador::tree_iterator_base< T > | |
tree_iterator_base ()=default | |
tree_iterator_base (t_node *n) | |
tree_iterator_base< T > & | operator= (const tree_iterator_base< T > &x)=default |
tree_iterator_base< T > & | operator= (tree_iterator_base< T > &&x) noexcept=default |
virtual | ~tree_iterator_base ()=default |
bool | operator== (const self &i) const |
bool | operator== (const const_tree_iterator_base< T > &i) const |
bool | operator!= (const self &i) const |
bool | operator!= (const const_tree_iterator_base< T > &i) const |
reference | operator* () const |
pointer | operator-> () const |
self & | operator++ () |
Pre increments self. | |
self & | operator-- () |
Pre decrements self. | |
self | operator++ (int) |
Post increments iterator. | |
self | operator-- (int) |
Post decrements iterator. | |
Default tree iterator iterates tree level by level from left to right starting with the root node
T | Type of the tree |
typedef tree_iterator_base<T>::t_node matador::tree_iterator< T >::node_type |
Shortcut to node class
|
default |
Default constructor
|
inline |
Copy constructor
x | Iterator to copy from |
|
inline |
Copy from base iterator class
x | Iterator to copy from |
|
inlineexplicit |
Initializes the iterator with the given node
n | Initial node of the iterator |
|
inline |
Copy assign constructor
x | Iterator to copy from |
|
inlinenoexcept |
Move assign constructor
x | Iterator to move assign from |