Herwig
7.2.1
|
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_type & | reference |
define the reference type | |
typedef value_type * | pointer |
define the pointer type | |
Public Member Functions | |
binary_tree * | get () 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_tree & | node () |
return reference to the node | |
biderectional iterator increment/decrements | |
iterator & | operator++ () |
pre-increment | |
iterator & | operator-- () |
pre-decrement | |
iterator | operator++ (int) |
post-increment | |
iterator | operator-- (int) |
post-decrement | |
Private Attributes | |
binary_tree * | pointee |
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 | |
iterator
Definition at line 97 of file binary_tree.h.