#include <tree.hpp>
Inherits matador::tree_iterator_base< T >.
Public Types | |
typedef tree_iterator_base< T >::t_node | t_node |
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_leaf_iterator ()=default | |
tree_leaf_iterator (const tree_leaf_iterator< T > &x) | |
tree_leaf_iterator (const tree_iterator_base< T > &x) | |
tree_leaf_iterator (t_node *n, bool as_begin) | |
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. | |
Leaf iterator only iterates over leafs of the tree.
T | Type of the tree |
typedef tree_iterator_base<T>::t_node matador::tree_leaf_iterator< T >::t_node |
Shortcut to the node type
|
default |
Default constructor
|
inline |
Copy constructs from given iterator
x | Iterator to copy from |
|
inlineexplicit |
Copy constructs from given tree base iterator
x | Iterator to copy from |
|
inline |
Initializes the iterator with the given node
n | Initial node of the iterator |
as_begin | Indicates that the given node is the beginning node |