Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/casse/otawa/elm/src/concepts.h>
Public Member Functions | |
void | clear (void) |
void | add (const T &item) |
void | addAll (const Collection< T > &items) |
void | remove (const T &item) |
void | removeAll (const Collection< T > &items) |
void | remove (const Iterator< T > &iter) |
Public Member Functions inherited from elm::concept::Collection< T > | |
int | count (void) |
bool | contains (const T &item) |
bool | containsAll (const C< T > &collection) |
bool | isEmpty (void) |
operator bool (void) | |
This concept provides way to have collections whose content may be modified.
T | Type of items in the collection. |
void elm::concept::MutableCollection< T >::add | ( | const T & | item | ) |
Add an item to the collection.
item | Item to add. |
void elm::concept::MutableCollection< T >::addAll | ( | const Collection< T > & | items | ) |
Add a collection to the current one.
items | Collection of items to add. |
void MutableCollection::clear | ( | void | ) |
Remove all items from the collection.
Clear the collection.
void elm::concept::MutableCollection< T >::remove | ( | const T & | item | ) |
Remove the given item from the collection.
item | Item to remove from the collection. |
void elm::concept::MutableCollection< T >::remove | ( | const Iterator< T > & | iter | ) |
Remove a value using an iterator.
iter | Iter giving the item to remove. |
void elm::concept::MutableCollection< T >::removeAll | ( | const Collection< T > & | items | ) |
Remove a collection from the current one.
items | Items to remove. |