SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A specialization of the smtk::common::PropertiesContainer for a single type. More...
#include <Properties.h>
Public Member Functions | |
std::size_t | eraseId (const smtk::common::UUID &id) override |
Public Member Functions inherited from smtk::common::TypeMapEntry< std::string, std::unordered_map< smtk::common::UUID, Type > > | |
TypeMapEntry (const TypeMapEntry &)=delete | |
As an extension of TypeMapBase's API, copy & move construction are not supported. | |
TypeMapEntry (TypeMapEntry &&)=delete | |
TypeMapEntry & | operator= (const TypeMapEntry &)=delete |
TypeMapEntry & | operator= (TypeMapEntry &&)=delete |
bool | contains (const std::string &key) const |
Check whether a value associated with key is present. | |
bool | insert (const std::string &key, const std::unordered_map< smtk::common::UUID, Type > &value) |
Insert (key, value ) into the map. | |
bool | emplace (const std::string &key, std::unordered_map< smtk::common::UUID, Type > &&value) |
Emplace (key, value ) into the map. | |
void | erase (const std::string &key) |
Erase value indexed by key from the map. | |
std::unordered_map< smtk::common::UUID, Type > & | operator[] (const std::string &key) |
Access value indexed by key. | |
std::unordered_map< smtk::common::UUID, Type > & | at (const std::string &key) |
Access value indexed by key. | |
const std::unordered_map< smtk::common::UUID, Type > & | at (const std::string &key) const |
Access value indexed by key. | |
std::unordered_map< std::string, std::unordered_map< smtk::common::UUID, Type > > & | data () |
Access the class's underlying data. | |
const std::unordered_map< std::string, std::unordered_map< smtk::common::UUID, Type > > & | data () const |
std::size_t | size () const override |
void | clear () override |
void | to_json (nlohmann::json &j) const override |
void | from_json (const nlohmann::json &j) override |
Public Member Functions inherited from smtk::common::TypeMapEntryBase | |
virtual std::size_t | size () const |
Friends | |
class | Properties |
Additional Inherited Members | |
Public Types inherited from smtk::common::TypeMapEntry< std::string, std::unordered_map< smtk::common::UUID, Type > > | |
typedef std::string | key_type |
typedef std::unordered_map< smtk::common::UUID, Type > | mapped_type |
Protected Member Functions inherited from smtk::common::TypeMapEntry< std::string, std::unordered_map< smtk::common::UUID, Type > > | |
TypeMapEntry ()=default | |
Construction of this class is delegated to TypeMap. | |
A specialization of the smtk::common::PropertiesContainer for a single type.
PropertiesOfType provides a non-templated API for accessing property information, as well as logic for erasing properties associated with a UUID (needed for cleaning up after components are deleted).