Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::concept::MutableMap< K, T > Class Template Reference

#include </home/casse/otawa/elm/src/concepts.h>

+ Inheritance diagram for elm::concept::MutableMap< K, T >:

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)
 

Detailed Description

template<class K, class T>
class elm::concept::MutableMap< K, T >

A map that may be modified.

Implemented by:

Member Function Documentation

template<class K , class T >
void elm::concept::MutableMap< K, T >::put ( const K &  key,
const T &  value 
)

Put a new value in the map.

Parameters
keyKey of the item to put.
valueValue of the item to put.
template<class K , class T >
void elm::concept::MutableMap< K, T >::remove ( const K &  key)

Remove a value by its key.

Parameters
keyKey of the value to remove.
template<class K , class T >
void elm::concept::MutableMap< K, T >::remove ( const PairIterator iter)

Remove an item using an iterator.

Parameters
iterIterator to use.

The documentation for this class was generated from the following file: