#include <tree.hpp>
Inherits matador::const_tree_iterator_base< T >.
Public Types | |
typedef const_tree_iterator_base< T >::t_node | t_node |
Public Types inherited from matador::const_tree_iterator_base< T > | |
typedef const_tree_iterator_base< T > | self |
typedef tree_iterator_base< T > | iterator |
typedef t_tree_node< T > | t_node |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
Public Member Functions | |
const_tree_subtree_iterator ()=default | |
const_tree_subtree_iterator (const const_tree_iterator_base< T > &x) | |
const_tree_subtree_iterator (const tree_iterator_base< T > &x) | |
const_tree_subtree_iterator (t_node *n) | |
Public Member Functions inherited from matador::const_tree_iterator_base< T > | |
const_tree_iterator_base ()=default | |
const_tree_iterator_base (const iterator &x) | |
const_tree_iterator_base (t_node *n) | |
virtual | ~const_tree_iterator_base ()=default |
bool | operator== (const self &i) const |
bool | operator== (const tree_iterator_base< T > &i) const |
bool | operator!= (const self &i) const |
bool | operator!= (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. | |
A subtree iterator iterates over all elements below a given node.
T | Type of the iterator |
typedef const_tree_iterator_base<T>::t_node matador::const_tree_subtree_iterator< T >::t_node |
Shortcut to the node type
|
default |
Default constructor
|
inlineexplicit |
Copy constructs from given const tree base iterator
x | Iterator to copy from |
|
inlineexplicit |
Copy constructs from given tree base iterator
x | Iterator to copy from |
|
inlineexplicit |
Initializes the iterator with the given node
n | Initial node of the iterator |