|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
22 #ifndef ELM_DYNDATA_COLLECTION_H
23 #define ELM_DYNDATA_COLLECTION_H
25 #include "AbstractCollection.h"
27 namespace elm {
namespace dyndata {
29 template <
class T,
class I>
34 virtual bool ended(
void)
const {
return _i.ended(); }
35 virtual T
item(
void)
const {
return _i.item(); }
36 virtual void next(
void) { _i.next(); }
37 inline const I&
iter(
void)
const {
return _i; }
41 template <
class T,
class I>
46 template <
class T,
class C>
53 virtual bool contains(
const T& item)
const {
return coll.contains(item); }
62 template <
class T,
class C>
79 #endif // ELM_DYNDATA_COLLECTION_H
Definition: util_WAHVector.cpp:157
virtual T item(void) const
Definition: Collection.h:35
virtual void remove(const T &item)
Definition: Collection.h:70
virtual void remove(const Iter< T > &iter)
Definition: Collection.h:73
const I & iter(void) const
Definition: Collection.h:37
virtual void clear(void)
Definition: Collection.h:66
virtual bool isEmpty(void) const
Definition: Collection.h:54
Definition: AbstractCollection.h:32
Definition: Collection.h:30
Definition: AbstractCollection.h:58
virtual int count(void)
Definition: Collection.h:52
Definition: AbstractCollection.h:43
virtual void removeAll(const AbstractCollection< T > &coll)
Definition: Collection.h:71
IterInst(const I &i)
Definition: Collection.h:32
virtual void next(void)
Definition: Collection.h:36
virtual void add(const T &item)
Definition: Collection.h:67
Definition: AbstractCollection.h:71
virtual bool ended(void) const
Definition: Collection.h:34
C coll
Definition: Collection.h:58
virtual void addAll(const AbstractCollection< T > &coll)
Definition: Collection.h:68
virtual bool contains(const T &item) const
Definition: Collection.h:53
Definition: Collection.h:47
virtual ~MutableCollection(void)
Definition: Collection.h:65
IterInst< T, I > * iter(const I &i)
Definition: Collection.h:42
virtual Iter< T > items(void) const
Definition: Collection.h:55
virtual ~Collection(void)
Definition: Collection.h:51
virtual ~IterInst(void)
Definition: Collection.h:33
Definition: Collection.h:63