#include <tree.hpp>
Inherits std::iterator< std::bidirectional_iterator_tag, T, std::ptrdiff_t, const T &, const T * >.
Inherited by matador::const_tree_iterator< T >, matador::const_tree_leaf_iterator< T >, matador::const_tree_sibling_iterator< T >, and matador::const_tree_subtree_iterator< T >.
|
class | tree< T > |
|
class | tree_iterator< T > |
|
class | tree_iterator_base< T > |
|
template<class T>
class matador::const_tree_iterator_base< T >
Base class for const tree iterator types
- Template Parameters
-
T | Type of the tree containing data |
◆ iterator
Shortcut to non const tree iterator
◆ pointer
Shortcut to pointer of value type
◆ reference
Shortcut to reference of value type
◆ self
◆ t_node
◆ value_type
◆ const_tree_iterator_base() [1/3]
◆ const_tree_iterator_base() [2/3]
Copy from iterator class
- Parameters
-
◆ const_tree_iterator_base() [3/3]
Initializes the iterator with the given node
- Parameters
-
n | Initial node of the iterator |
◆ ~const_tree_iterator_base()
◆ operator!=() [1/2]
Not equal compares another iterator with this
- Parameters
-
- Returns
- True if the iterators are not the same
◆ operator!=() [2/2]
Not equal compares another tree iterator with this
- Parameters
-
i | The tree iterator to compare |
- Returns
- True if the iterators are not the same
◆ operator*()
Returns a reference nodes data
- Returns
- Reference to nodes data
◆ operator++() [1/2]
Pre increments self.
- Returns
- A reference to incremented self
◆ operator++() [2/2]
Post increments iterator.
Post increments iterator and returns a new iterator object.
- Returns
- Returns new incremented iterator
◆ operator--() [1/2]
Pre decrements self.
- Returns
- A reference to decremented self
◆ operator--() [2/2]
Post decrements iterator.
Post decrements iterator and returns a new iterator object.
- Returns
- Returns new decremented iterator
◆ operator->()
Returns a reference nodes data
- Returns
- Reference to nodes data
◆ operator==() [1/2]
Equal compares another iterator with this
- Parameters
-
- Returns
- True if the iterators are the same
◆ operator==() [2/2]
Equal compares another tree iterator with this
- Parameters
-
i | The tree iterator to compare |
- Returns
- True if the iterators are the same
The documentation for this class was generated from the following file: