bbtk::TypeMapping< ValueType > Class Template Reference

#include <bbtkTypeMapping.h>

List of all members.

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


Detailed Description

template<typename ValueType>
class bbtk::TypeMapping< ValueType >

Definition at line 41 of file bbtkTypeMapping.h.


Member Typedef Documentation

template<typename ValueType>
typedef std::map<void*, ValueType>::const_iterator bbtk::TypeMapping< ValueType >::const_iterator

Definition at line 64 of file bbtkTypeMapping.h.


Constructor & Destructor Documentation

template<typename ValueType>
bbtk::TypeMapping< ValueType >::TypeMapping (  )  [inline]

Definition at line 44 of file bbtkTypeMapping.h.

00044 {}


Member Function Documentation

template<typename ValueType>
template<typename T>
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   }

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename ValueType>
template<typename T>
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   }

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename ValueType>
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   }

Here is the call graph for this function:

template<typename ValueType>
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(); }

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename ValueType>
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(); }

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename ValueType>
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(); }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

template<typename ValueType>
std::map<void*, ValueType> bbtk::TypeMapping< ValueType >::m_map [protected]


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

Generated on Wed Nov 12 11:38:52 2008 for BBTK by  doxygen 1.5.6