herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
exsample::binary_tree< Value >::const_iterator Class Reference

const_iterator More...

#include <binary_tree.h>

Public Types

type definitions for iterator traits
typedef std::bidirectional_iterator_tag iterator_category
 define the iterator category
 
typedef int difference_type
 define the difference type
 
typedef const Value value_type
 define the value type
 
typedef const value_typereference
 define the reference type
 
typedef const value_typepointer
 define the pointer type
 

Public Member Functions

constructors
 const_iterator ()
 default constructor
 
 const_iterator (const binary_tree *p, std::size_t end=0)
 constructor taking pointee
 
 const_iterator (const iterator &x)
 conversion from iterator
 
comparisons
bool operator== (const const_iterator &x) const
 comparison
 
bool operator!= (const const_iterator &x) const
 comparison
 
dereference and indirection
reference operator* () const
 dereference
 
pointer operator-> () const
 indirection
 
const binary_treenode () const
 return reference to the node
 

biderectional iterator increment/decrements

const binary_treepointee
 the node pointed to
 
std::size_t post_end
 the distance from –end() (if above –end())
 
std::size_t pre_begin
 the distance from begin() (if below begin())
 
const_iteratoroperator++ ()
 pre-increment
 
const_iteratoroperator-- ()
 pre-decrement
 
const_iterator operator++ (int)
 post-increment
 
const_iterator operator-- (int)
 post-decrement
 

Detailed Description

template<class Value>
class exsample::binary_tree< Value >::const_iterator

const_iterator

Definition at line 245 of file binary_tree.h.

Member Typedef Documentation

◆ difference_type

template<class Value >
typedef int exsample::binary_tree< Value >::const_iterator::difference_type

define the difference type

Definition at line 256 of file binary_tree.h.

◆ iterator_category

template<class Value >
typedef std::bidirectional_iterator_tag exsample::binary_tree< Value >::const_iterator::iterator_category

define the iterator category

Definition at line 253 of file binary_tree.h.

◆ pointer

template<class Value >
typedef const value_type* exsample::binary_tree< Value >::const_iterator::pointer

define the pointer type

Definition at line 265 of file binary_tree.h.

◆ reference

template<class Value >
typedef const value_type& exsample::binary_tree< Value >::const_iterator::reference

define the reference type

Definition at line 262 of file binary_tree.h.

◆ value_type

template<class Value >
typedef const Value exsample::binary_tree< Value >::const_iterator::value_type

define the value type

Definition at line 259 of file binary_tree.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

template<class Value >
exsample::binary_tree< Value >::const_iterator::const_iterator ( )
inline

default constructor

Definition at line 275 of file binary_tree.h.

◆ const_iterator() [2/3]

template<class Value >
exsample::binary_tree< Value >::const_iterator::const_iterator ( const binary_tree p,
std::size_t  end = 0 
)
inline

constructor taking pointee

Definition at line 278 of file binary_tree.h.

◆ const_iterator() [3/3]

template<class Value >
exsample::binary_tree< Value >::const_iterator::const_iterator ( const iterator x)
inline

conversion from iterator

Definition at line 282 of file binary_tree.h.

Member Function Documentation

◆ node()

template<class Value >
const binary_tree & exsample::binary_tree< Value >::const_iterator::node ( ) const
inline

return reference to the node

Definition at line 316 of file binary_tree.h.

References exsample::binary_tree< Value >::const_iterator::pointee.

◆ operator!=()

template<class Value >
bool exsample::binary_tree< Value >::const_iterator::operator!= ( const const_iterator x) const
inline

comparison

Definition at line 300 of file binary_tree.h.

◆ operator*()

template<class Value >
reference exsample::binary_tree< Value >::const_iterator::operator* ( ) const
inline

◆ operator++() [1/2]

◆ operator++() [2/2]

template<class Value >
const_iterator exsample::binary_tree< Value >::const_iterator::operator++ ( int  )
inline

post-increment

Definition at line 342 of file binary_tree.h.

◆ operator--() [1/2]

◆ operator--() [2/2]

template<class Value >
const_iterator exsample::binary_tree< Value >::const_iterator::operator-- ( int  )
inline

post-decrement

Definition at line 349 of file binary_tree.h.

◆ operator->()

template<class Value >
pointer exsample::binary_tree< Value >::const_iterator::operator-> ( ) const
inline

indirection

Definition at line 313 of file binary_tree.h.

◆ operator==()

template<class Value >
bool exsample::binary_tree< Value >::const_iterator::operator== ( const const_iterator x) const
inline

Member Data Documentation

◆ pointee

◆ post_end

template<class Value >
std::size_t exsample::binary_tree< Value >::const_iterator::post_end
private

◆ pre_begin

template<class Value >
std::size_t exsample::binary_tree< Value >::const_iterator::pre_begin
private

The documentation for this class was generated from the following file: