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

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 Value value_type
 define the value type
 
typedef value_typereference
 define the reference type
 
typedef value_typepointer
 define the pointer type
 

Public Member Functions

binary_treeget () const
 return raw pointer to the element pointed to
 
constructors
 iterator ()
 default constructor
 
 iterator (binary_tree *p, std::size_t end=0)
 constructor taking pointee
 
comparisons
bool operator== (const iterator &x) const
 comparison
 
bool operator!= (const iterator &x) const
 comparison
 
derefrence and indirection
reference operator* ()
 dereference
 
pointer operator-> ()
 indirection
 
binary_treenode ()
 return reference to the node
 
biderectional iterator increment/decrements
iteratoroperator++ ()
 pre-increment
 
iteratoroperator-- ()
 pre-decrement
 
iterator operator++ (int)
 post-increment
 
iterator operator-- (int)
 post-decrement
 

Private Attributes

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())
 

Friends

class const_iterator
 friend for conversion
 

Detailed Description

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

iterator

Definition at line 97 of file binary_tree.h.


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