22 #ifndef ELM_INDEXED_ITERATOR_H
23 #define ELM_INDEXED_ITERATOR_H
25 #include <elm/PreIterator.h>
30 template <
class I,
class T,
class C>
40 inline bool ended(
void)
const {
return !c || i >= c->size(); }
41 inline const T&
item(
void)
const {
return (*c)[i]; }
42 inline void next(
void) { i++; }
Definition: IndexedIterator.h:31
IndexedIterator(const C &collection)
Definition: IndexedIterator.h:36
IndexedIterator(void)
Definition: IndexedIterator.h:35
void next(void)
Definition: IndexedIterator.h:42
this_t & operator=(const this_t &iter)
Definition: IndexedIterator.h:38
const T & item(void) const
Definition: IndexedIterator.h:41
IndexedIterator(const this_t &iter)
Definition: IndexedIterator.h:37
bool ended(void) const
Definition: IndexedIterator.h:40
Definition: util_WAHVector.cpp:157