22 template <
typename Iter>
47 typename std::iterator_traits<Iter>::
56 typename std::iterator_traits<Iter>::
58 operator Iter()
const {
return itPrev; }
60 void set( Iter first , Iter end )
62 template <
typename C>
void set( C& CCC )
63 {
set( CCC.begin(), CCC.end() ); }
64 template <
typename C>
void set(
const C& CCC )
65 {
set( CCC.begin(), CCC.end() ); }
97 #define English_dox "Doxygen English documentation"
102 #define Spanish_dox "Documentación Doxygen en español"
friend bool operator!=(const iterJava< Iter > &l, const iterJava< Iter > &r)
( l != r ) ?
An iterator over a collection.
void set(Iter first, Iter end)
Resets the iterator to traverse from first up to end.
void set(C &CCC)
Resets the iterator to traverse from C.
Iter itPrev
Remember last value returned.
friend bool operator==(const iterJava< Iter > &l, const iterJava< Iter > &r)
( l == r ) ?
bool isBackward() const
Returns true if the iteration goes in reverse (backwards).
iterJava(const iterJava &o)
Copy constructor.
Iter itNext
Next value to return.
std::iterator_traits< Iter >::reference next()
Returns the next element in the iteration.
bool isReverse() const
Returns true if the iteration goes in reverse (backwards).
void set(const C &CCC)
Resets the iterator to traverse from C (const version).
void setReverse()
Sets the iterator to go reverse (backwards).
bool isForward() const
Returns true if the iteration is natural, from first to last.
iterJava(Iter first, Iter end)
Constructor to traverse from first up to end.
iterJava()
Default constructor.
std::iterator_traits< Iter >::reference current() const
Returns the value that the last invocation to next() returned.
bool hasNext() const
Returns true if the iteration has more elements.
iterJava & operator=(const iterJava &o)
Copy.
Iter itEnd
Past the last value.
void setBackward()
Sets the iterator to go reverse (backwards).
bool isFwd
"false" if it is a reverse_iterator.