Store objects with a common base class.
More...
#include <type_map.h>
|
| template<class ObjectT > |
| void | setObject (ObjectT &object) |
| | Store the object with base class as GenericObjectT. More...
|
| |
| template<class ObjectT > |
| ObjectT * | getObject () |
| | return the object stored More...
|
| |
| template<class ObjectT > |
| const ObjectT * | getObject () const |
| | return a const oject pointer stored More...
|
| |
template<class GenericObjectT>
class TypeMap< GenericObjectT >
Store objects with a common base class.
- Template Parameters
-
| GenericObjectT | Common base class for objects stored |
template<class GenericObjectT>
template<class ObjectT >
| ObjectT* TypeMap< GenericObjectT >::getObject |
( |
| ) |
|
|
inline |
return the object stored
- Template Parameters
-
| ObjectT | type of object to be retrieved. |
- Returns
- pointer to the instance of the object.
template<class GenericObjectT>
template<class ObjectT >
| const ObjectT* TypeMap< GenericObjectT >::getObject |
( |
| ) |
const |
|
inline |
return a const oject pointer stored
- Template Parameters
-
| ObjectT | type of object to be retrieved |
- Returns
- const pointer to the instance of the object.
template<class GenericObjectT>
template<class ObjectT >
| void TypeMap< GenericObjectT >::setObject |
( |
ObjectT & |
object | ) |
|
|
inline |
Store the object with base class as GenericObjectT.
- Template Parameters
-
| ObjectT | The type of object being stored. ObjectT should be base class of GenericObjectT |
- Parameters
-
| object | The address of an instance of ObjectT being stored |
The documentation for this class was generated from the following file: