![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/dyndata/Collection.h>
Inheritance diagram for MutableCollection< T, C >:Public Member Functions | |
| virtual | ~MutableCollection (void) |
| virtual void | clear (void) |
| virtual void | add (const T &item) |
| virtual void | addAll (const AbstractCollection< T > &coll) |
| virtual void | remove (const T &item) |
| virtual void | removeAll (const AbstractCollection< T > &coll) |
| virtual void | remove (const Iter< T > &iter) |
Public Member Functions inherited from Collection< T, C > | |
| virtual | ~Collection (void) |
| virtual int | count (void) |
| virtual bool | contains (const T &item) const |
| virtual bool | isEmpty (void) const |
| virtual Iter< T > | items (void) const |
Public Member Functions inherited from AbstractCollection< T > | |
| virtual | ~AbstractCollection (void) |
| operator bool (void) const | |
| Iter< T > | operator* (void) const |
Public Member Functions inherited from MutableAbstractCollection< T > | |
| virtual | ~MutableAbstractCollection (void) |
Additional Inherited Members | |
Protected Attributes inherited from Collection< T, C > | |
| C | coll |
AbstractCollection implementation from Data Structures collection.
| T | Type of collection values. |
| C | Type of generic collection (containing values of type T). |
|
inlinevirtual |
|
inlinevirtual |
Add a value to the collection.
| val | Added value. |
Implements MutableAbstractCollection< T >.
Referenced by MutableCollection< T, C >::addAll().
|
inlinevirtual |
Add the values of the given collection to the current one.
| coll | Added collection. |
Implements MutableAbstractCollection< T >.
References MutableCollection< T, C >::add(), and Collection< T, C >::coll.
Implements MutableAbstractCollection< T >.
Implements MutableAbstractCollection< T >.
References IterInst< T, I >::iter().
|
inlinevirtual |
Remove a value from the collection.
| val | Removed value. |
Implements MutableAbstractCollection< T >.
Referenced by MutableCollection< T, C >::removeAll().
|
inlinevirtual |
Remove the values of the given collection from the given one.
| coll | Removed collection. |
Implements MutableAbstractCollection< T >.
References Collection< T, C >::coll, and MutableCollection< T, C >::remove().