Public Types | Public Member Functions | Private Attributes
DefaultMap< Key, T > Class Template Reference

#include <DefaultMap.h>

List of all members.

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
Toperator[] (const Key &key)
void set (const Key &key, const T &val)
unsigned int size ()

Private Attributes

const T defaultValue
std::map< Key, Tvals

Detailed Description

template<class Key, class T>
class DefaultMap< Key, T >

Definition at line 21 of file DefaultMap.h.


Member Typedef Documentation

template<class Key , class T >
typedef std::map<Key,T>::const_iterator DefaultMap< Key, T >::const_iterator

Definition at line 27 of file DefaultMap.h.

template<class Key , class T >
typedef std::map<Key,T>::iterator DefaultMap< Key, T >::iterator

Definition at line 28 of file DefaultMap.h.


Constructor & Destructor Documentation

template<class Key , class T >
DefaultMap< Key, T >::DefaultMap ( T  defaultValue) [inline]

Definition at line 30 of file DefaultMap.h.


Member Function Documentation

template<class Key , class T >
const_iterator DefaultMap< Key, T >::begin ( ) const [inline]

Definition at line 72 of file DefaultMap.h.

template<class Key , class T >
iterator DefaultMap< Key, T >::begin ( ) [inline]

Definition at line 76 of file DefaultMap.h.

template<class Key , class T >
void DefaultMap< Key, T >::clear ( ) [inline]

Definition at line 56 of file DefaultMap.h.

template<class Key , class T >
const_iterator DefaultMap< Key, T >::end ( ) const [inline]

Definition at line 80 of file DefaultMap.h.

template<class Key , class T >
iterator DefaultMap< Key, T >::end ( ) [inline]

Definition at line 84 of file DefaultMap.h.

template<class Key , class T >
void DefaultMap< Key, T >::erase ( iterator  position) [inline]

Definition at line 60 of file DefaultMap.h.

template<class Key , class T >
size_t DefaultMap< Key, T >::erase ( const Key &  key) [inline]

Definition at line 64 of file DefaultMap.h.

template<class Key , class T >
T DefaultMap< Key, T >::get ( const Key &  key) const [inline]

Definition at line 34 of file DefaultMap.h.

template<class Key , class T >
T& DefaultMap< Key, T >::operator[] ( const Key &  key) [inline]

Definition at line 46 of file DefaultMap.h.

template<class Key , class T >
void DefaultMap< Key, T >::set ( const Key &  key,
const T val 
) [inline]

Definition at line 52 of file DefaultMap.h.

template<class Key , class T >
unsigned int DefaultMap< Key, T >::size ( ) [inline]

Definition at line 68 of file DefaultMap.h.


Member Data Documentation

template<class Key , class T >
const T DefaultMap< Key, T >::defaultValue [private]

Definition at line 94 of file DefaultMap.h.

template<class Key , class T >
std::map<Key,T> DefaultMap< Key, T >::vals [private]

Definition at line 92 of file DefaultMap.h.


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


bwi_tools
Author(s): Piyush Khandelwal
autogenerated on Thu Jun 6 2019 17:57:26