SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Properties is a generalized container for storing and accessing data using a std::string key. More...
#include <Properties.h>
Public Member Functions | |
template<typename List > | |
Properties (identity< List >) | |
std::size_t | eraseId (const smtk::common::UUID &id) |
template<typename Type > | |
std::size_t | eraseIdForType (const smtk::common::UUID &id) |
template<typename Type > | |
void | insertPropertyType () |
template<typename Tuple > | |
void | insertPropertyTypes () |
Public Member Functions inherited from smtk::common::TypeMapBase< std::string > | |
bool | contains (const std::string &key) const |
Check whether a value of type Type associated with key is present. More... | |
bool | insert (const std::string &key, const Type &value) |
Insert (Type, key, value ) into the map. | |
bool | emplace (const std::string &key, Type &&value) |
Emplace (Type, key, value ) into the map. | |
void | erase (const std::string &key) |
Erase value of type Type indexed by key from the map. | |
Type & | at (const std::string &key) |
Access value of type Type indexed by key. More... | |
const Type & | at (const std::string &key) const |
Access value of type Type indexed by key. More... | |
TypeMapEntry< std::string, Type > & | get () |
Access values of type Type. | |
const TypeMapEntry< std::string, Type > & | get () const |
Access values of type Type. | |
bool | containsType () const |
Check whether type Type is supported. | |
std::unordered_map< std::string, TypeMapEntryBase * > & | data () |
Access the class's underlying data. | |
const std::unordered_map< std::string, TypeMapEntryBase * > & | data () const |
Properties is a generalized container for storing and accessing data using a std::string key.
This Properties differs from smtk::common::TypeMapBase by constructing custom TypeMapEntries<> that are tailored for use with additional UUID indexing.