matador::const_tree_sibling_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_sibling_iterator ()=default
 
 const_tree_sibling_iterator (const const_tree_iterator_base< T > &x)
 
 const_tree_sibling_iterator (const tree_iterator_base< T > &x)
 
 const_tree_sibling_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
 
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_sibling_iterator< T >

Sibling iterator iterates only the sibling of another iterator

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_sibling_iterator< T >::t_node

Shortcut to the node type

Constructor & Destructor Documentation

◆ const_tree_sibling_iterator() [1/4]

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

Default constructor

◆ const_tree_sibling_iterator() [2/4]

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

Copy constructs from given const tree base iterator

Parameters
xIterator to copy from

◆ const_tree_sibling_iterator() [3/4]

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

Copy constructs from given tree base iterator

Parameters
xIterator to copy from

◆ const_tree_sibling_iterator() [4/4]

template<typename T >
matador::const_tree_sibling_iterator< T >::const_tree_sibling_iterator ( t_node n)
inlineexplicit

Initializes the iterator with the given node

Parameters
nInitial node of the iterator

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