|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
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++; }
51 #endif // ELM_INDEXED_ITERATOR_H
Definition: util_WAHVector.cpp:157
void next(void)
Definition: IndexedIterator.h:42
const T & item(void) const
Definition: IndexedIterator.h:41
IndexedIterator(void)
Definition: IndexedIterator.h:35
this_t & operator=(const this_t &iter)
Definition: IndexedIterator.h:38
bool ended(void) const
Definition: IndexedIterator.h:40
IndexedIterator(const C &collection)
Definition: IndexedIterator.h:36
IndexedIterator(const this_t &iter)
Definition: IndexedIterator.h:37
Definition: IndexedIterator.h:31