SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Types | Public Member Functions | Protected Member Functions | List of all members
smtk::common::TypeMap< KeyType > Class Template Reference

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 ()
 

Detailed Description

template<typename KeyType = std::string>
class smtk::common::TypeMap< KeyType >

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).


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