#include <DefaultMap.h>
Public Types | |
typedef std::map< Key, T > ::const_iterator | const_iterator |
typedef std::map< Key, T > ::iterator | iterator |
Public Member Functions | |
const_iterator | begin () const |
iterator | begin () |
void | clear () |
DefaultMap (T defaultValue) | |
const_iterator | end () const |
iterator | end () |
void | erase (iterator position) |
size_t | erase (const Key &key) |
T | get (const Key &key) const |
T & | operator[] (const Key &key) |
void | set (const Key &key, const T &val) |
unsigned int | size () |
Private Attributes | |
const T | defaultValue |
std::map< Key, T > | vals |
Definition at line 21 of file DefaultMap.h.
typedef std::map<Key,T>::const_iterator DefaultMap< Key, T >::const_iterator |
Definition at line 27 of file DefaultMap.h.
typedef std::map<Key,T>::iterator DefaultMap< Key, T >::iterator |
Definition at line 28 of file DefaultMap.h.
DefaultMap< Key, T >::DefaultMap | ( | T | defaultValue | ) | [inline] |
Definition at line 30 of file DefaultMap.h.
const_iterator DefaultMap< Key, T >::begin | ( | ) | const [inline] |
Definition at line 72 of file DefaultMap.h.
iterator DefaultMap< Key, T >::begin | ( | ) | [inline] |
Definition at line 76 of file DefaultMap.h.
void DefaultMap< Key, T >::clear | ( | ) | [inline] |
Definition at line 56 of file DefaultMap.h.
const_iterator DefaultMap< Key, T >::end | ( | ) | const [inline] |
Definition at line 80 of file DefaultMap.h.
iterator DefaultMap< Key, T >::end | ( | ) | [inline] |
Definition at line 84 of file DefaultMap.h.
void DefaultMap< Key, T >::erase | ( | iterator | position | ) | [inline] |
Definition at line 60 of file DefaultMap.h.
size_t DefaultMap< Key, T >::erase | ( | const Key & | key | ) | [inline] |
Definition at line 64 of file DefaultMap.h.
T DefaultMap< Key, T >::get | ( | const Key & | key | ) | const [inline] |
Definition at line 34 of file DefaultMap.h.
T& DefaultMap< Key, T >::operator[] | ( | const Key & | key | ) | [inline] |
Definition at line 46 of file DefaultMap.h.
void DefaultMap< Key, T >::set | ( | const Key & | key, |
const T & | val | ||
) | [inline] |
Definition at line 52 of file DefaultMap.h.
unsigned int DefaultMap< Key, T >::size | ( | ) | [inline] |
Definition at line 68 of file DefaultMap.h.
const T DefaultMap< Key, T >::defaultValue [private] |
Definition at line 94 of file DefaultMap.h.
std::map<Key,T> DefaultMap< Key, T >::vals [private] |
Definition at line 92 of file DefaultMap.h.