SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
TypeMap is a generalized map for storing and accessing data using a key. More...
#include <TypeMap.h>
Public Types | |
typedef KeyType | key_type |
Public Member Functions | |
template<typename List > | |
TypeMap (identity< List >) | |
Protected Member Functions | |
template<typename Type > | |
void | insertType () |
template<typename Tuple > | |
void | insertTypes () |
TypeMap is a generalized map for storing and accessing data using a key.
The value type is open-ended and extensible; to accommodate this flexibility, there is both a templated API on the TypeMapBase class and a specialized TypeMapEntry interface. TypeMap augments TypeMapBase with the ability to declare supported types; this functionality is only exposed at construction to enforce RAII (otherwise, serialization routines would have to bind type names to types).