matador::const_tree_leaf_iterator< T > Class Template Reference

#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_leaf_iterator ()=default
 
 const_tree_leaf_iterator (const const_tree_iterator_base< T > &x)
 
 const_tree_leaf_iterator (const tree_iterator_base< T > &x)
 
 const_tree_leaf_iterator (t_node *n, bool as_begin)
 
- 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
 
selfoperator++ ()
 Pre increments self.
 
selfoperator-- ()
 Pre decrements self.
 
self operator++ (int)
 Post increments iterator.
 
self operator-- (int)
 Post decrements iterator.
 

Detailed Description

template<typename T>
class matador::const_tree_leaf_iterator< T >

Leaf const iterator only iterates over leafs of the tree.

Template Parameters
TType of the tree

Member Typedef Documentation

◆ t_node

template<typename T >
typedef const_tree_iterator_base<T>::t_node matador::const_tree_leaf_iterator< T >::t_node

Shortcut to the node type

Constructor & Destructor Documentation

◆ const_tree_leaf_iterator() [1/4]

template<typename T >
matador::const_tree_leaf_iterator< T >::const_tree_leaf_iterator ( )
default

Default constructor

◆ const_tree_leaf_iterator() [2/4]

template<typename T >
matador::const_tree_leaf_iterator< T >::const_tree_leaf_iterator ( const const_tree_iterator_base< T > &  x)
inlineexplicit

Copy constructs from given const tree base iterator

Parameters
xIterator to copy from

◆ const_tree_leaf_iterator() [3/4]

template<typename T >
matador::const_tree_leaf_iterator< T >::const_tree_leaf_iterator ( const tree_iterator_base< T > &  x)
inlineexplicit

Copy constructs from given tree base iterator

Parameters
xIterator to copy from

◆ const_tree_leaf_iterator() [4/4]

template<typename T >
matador::const_tree_leaf_iterator< T >::const_tree_leaf_iterator ( t_node n,
bool  as_begin 
)
inline

Initializes the iterator with the given node

Parameters
nInitial node of the iterator
as_beginIndicates that the given node is the beginning node

The documentation for this class was generated from the following file:
  • matador/utils/tree.hpp