#include <bbtkTypeMapping.h>
Public Types | |
typedef std::map< void *, ValueType >::const_iterator | const_iterator |
Public Member Functions | |
TypeMapping () | |
template<typename T> | |
ValueType & | value () |
template<typename T> | |
ValueType & | operator[] (const T &) |
ValueType & | operator[] (const std::type_info &t) |
unsigned int | size () const |
const_iterator | begin () const |
const_iterator | end () const |
Protected Attributes | |
std::map< void *, ValueType > | m_map |
Definition at line 41 of file bbtkTypeMapping.h.
typedef std::map<void*, ValueType>::const_iterator bbtk::TypeMapping< ValueType >::const_iterator |
Definition at line 64 of file bbtkTypeMapping.h.
bbtk::TypeMapping< ValueType >::TypeMapping | ( | ) | [inline] |
ValueType& bbtk::TypeMapping< ValueType >::value | ( | ) | [inline] |
Definition at line 47 of file bbtkTypeMapping.h.
References bbtk::TypeMapping< ValueType >::m_map, and bbtk::TypeMapping< ValueType >::value().
Referenced by bbtk::TypeMapping< ValueType >::value().
00048 { 00049 return m_map[ (void*)typeid(T).name() ]; 00050 }
ValueType& bbtk::TypeMapping< ValueType >::operator[] | ( | const T & | ) | [inline] |
Definition at line 52 of file bbtkTypeMapping.h.
References bbtk::TypeMapping< ValueType >::m_map, and bbtk::TypeMapping< ValueType >::operator[]().
Referenced by bbtk::TypeMapping< ValueType >::operator[]().
00053 { 00054 return m_map[ (void*)typeid(T).name() ]; 00055 }
ValueType& bbtk::TypeMapping< ValueType >::operator[] | ( | const std::type_info & | t | ) | [inline] |
Definition at line 57 of file bbtkTypeMapping.h.
References bbtk::TypeMapping< ValueType >::m_map, and bbtk::TypeMapping< ValueType >::operator[]().
00058 { 00059 return m_map[ (void*)t.name() ]; 00060 }
unsigned int bbtk::TypeMapping< ValueType >::size | ( | ) | const [inline] |
Definition at line 62 of file bbtkTypeMapping.h.
References bbtk::TypeMapping< ValueType >::m_map, and bbtk::TypeMapping< ValueType >::size().
Referenced by bbtk::TypeMapping< ValueType >::size().
00062 { return m_map.size(); }
const_iterator bbtk::TypeMapping< ValueType >::begin | ( | ) | const [inline] |
Definition at line 66 of file bbtkTypeMapping.h.
References bbtk::TypeMapping< ValueType >::begin(), and bbtk::TypeMapping< ValueType >::m_map.
Referenced by bbtk::TypeMapping< ValueType >::begin().
00066 { return m_map.begin(); }
const_iterator bbtk::TypeMapping< ValueType >::end | ( | ) | const [inline] |
Definition at line 67 of file bbtkTypeMapping.h.
References bbtk::TypeMapping< ValueType >::end(), and bbtk::TypeMapping< ValueType >::m_map.
Referenced by bbtk::TypeMapping< ValueType >::end().
00067 { return m_map.end(); }
std::map<void*, ValueType> bbtk::TypeMapping< ValueType >::m_map [protected] |
Definition at line 70 of file bbtkTypeMapping.h.
Referenced by bbtk::TypeMapping< ValueType >::begin(), bbtk::TypeMapping< ValueType >::end(), bbtk::TypeMapping< ValueType >::operator[](), bbtk::TypeMapping< ValueType >::size(), and bbtk::TypeMapping< ValueType >::value().