bbitk::TypeMapping< ValueType > Class Template Reference

#include <bbitkImage.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 bbitk::TypeMapping< ValueType >

Definition at line 389 of file bbitkImage.h.


Member Typedef Documentation

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

Definition at line 412 of file bbitkImage.h.


Constructor & Destructor Documentation

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

Definition at line 392 of file bbitkImage.h.

00392 {}


Member Function Documentation

template<typename ValueType>
template<typename T>
ValueType& bbitk::TypeMapping< ValueType >::value (  )  [inline]

Definition at line 395 of file bbitkImage.h.

References bbitk::TypeMapping< ValueType >::m_map.

00396   {
00397     return m_map[ (void*)typeid(T).name() ];
00398   }

template<typename ValueType>
template<typename T>
ValueType& bbitk::TypeMapping< ValueType >::operator[] ( const T &   )  [inline]

Definition at line 400 of file bbitkImage.h.

References bbitk::TypeMapping< ValueType >::m_map.

00401   {
00402     return m_map[ (void*)typeid(T).name() ];
00403   }

template<typename ValueType>
ValueType& bbitk::TypeMapping< ValueType >::operator[] ( const std::type_info &  t  )  [inline]

Definition at line 405 of file bbitkImage.h.

References bbitk::TypeMapping< ValueType >::m_map.

00406   {
00407     return m_map[ (void*)t.name() ];
00408   }

template<typename ValueType>
unsigned int bbitk::TypeMapping< ValueType >::size (  )  const [inline]

Definition at line 410 of file bbitkImage.h.

References bbitk::TypeMapping< ValueType >::m_map.

00410 { return m_map.size(); }

template<typename ValueType>
const_iterator bbitk::TypeMapping< ValueType >::begin (  )  const [inline]

Definition at line 414 of file bbitkImage.h.

References bbitk::TypeMapping< ValueType >::m_map.

00414 { return m_map.begin(); }

template<typename ValueType>
const_iterator bbitk::TypeMapping< ValueType >::end (  )  const [inline]

Definition at line 415 of file bbitkImage.h.

References bbitk::TypeMapping< ValueType >::m_map.

00415 { return m_map.end(); }


Member Data Documentation

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


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

Generated on Tue Oct 21 16:06:57 2008 for itk by  doxygen 1.5.6