#include <common.h>


Public Types | |
| typedef T::key_t | key_t |
| typedef T | instance_t |
| typedef hash_map< key_t, instance_t * > | inner_map_t |
| typedef inner_map_t::iterator | iterator |
Public Member Functions | |
| ~consolidation_map () | |
| T * | get (const key_t &k) const |
| void | put (const key_t &k, T *instance) |
| size_t | elements () const |
| iterator | begin () const |
| iterator | end () const |
Private Attributes | |
| inner_map_t | m_inner_map |
A map from T::key_t to T* for use in consolidating instances of T. Owns all instances of T. T::key_t should have operator== and be hashable.
| typedef hash_map<key_t, instance_t *> consolidation_map< T >::inner_map_t |
| typedef T consolidation_map< T >::instance_t |
| typedef inner_map_t::iterator consolidation_map< T >::iterator |
| typedef T::key_t consolidation_map< T >::key_t |
|
inline |
References m_inner_map.
|
inline |
References m_inner_map.
|
inline |
References m_inner_map.
|
inline |
References m_inner_map.
|
inline |
References get(), m_inner_map, and T.
Referenced by get().
|
inline |
References m_inner_map, and T.
|
private |
Referenced by begin(), elements(), end(), get(), put(), and ~consolidation_map().