95 void reset(
int removed_objects=0 );
113 int next( T& element );
128 #include "iterator.icc"
130 #ifdef EARLY_TEMPLATE
131 #ifdef __EXECUTABLE__
133 #include "iterator.cpp"
135 #include "iterator.cc"
r_Iterator()
default constructor
void replace_element(const T &element)
replaces the actual element (can only be used with r_List)
Definition: collection.hh:40
int not_done() const
returns 1 if there are more elements to be visited in the iteration and 0 if iteration is complete ...
T get_element() const
gets the actual element
int next(T &element)
gets the actual element, advances one element, and returns whether iteration is complete or not ...
void advance()
advances one element
T operator*()
the dereference operator gets the actual element
Definition: collection.hh:57
r_Iterator< T > & operator++()
prefix incrementor
r_Iterator< T > & operator=(const r_Iterator< T > &iter)
assignment operator
int is_equal(const r_Iterator< T > &iter) const
comparisons: equal if they point to the same element in the same collection, not equal if they point ...
void reset(int removed_objects=0)
re-initialize the iterator to the start of iteration for the same collection