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 | put (const K &key, const T &value) |
void | remove (const K &key) |
void | remove (const PairIterator &iter) |
Public Member Functions inherited from elm::concept::Map< K, T > | |
Option< const T & > | get (const K &key) const |
const T & | get (const K &key, const T &def) const |
bool | hasKey (const K &key) const |
Public Member Functions inherited from elm::concept::Collection< Pair< K, T > > | |
int | count (void) |
bool | contains (const Pair< K, T > &item) |
bool | containsAll (const C< Pair< K, T > > &collection) |
bool | isEmpty (void) |
operator bool (void) | |
A map that may be modified.
void elm::concept::MutableMap< K, T >::put | ( | const K & | key, |
const T & | value | ||
) |
Put a new value in the map.
key | Key of the item to put. |
value | Value of the item to put. |
void elm::concept::MutableMap< K, T >::remove | ( | const K & | key | ) |
Remove a value by its key.
key | Key of the value to remove. |
void elm::concept::MutableMap< K, T >::remove | ( | const PairIterator & | iter | ) |
Remove an item using an iterator.
iter | Iterator to use. |