SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
This specialization of smtk::resource::Properties completes aforementioned class's implementation by accessing the properties container held by the component's resource. More...
#include <Properties.h>
Public Member Functions | |
std::size_t | clear () override |
Remove all properties this object manages. | |
Public Member Functions inherited from smtk::resource::Properties | |
template<typename Type > | |
bool | contains (const std::string &key) const |
Check whether a property associated with key is present. | |
template<typename Type > | |
bool | insert (const std::string &key, const Type &value) |
Insert (key, value ) into the container. | |
template<typename Type > | |
bool | emplace (const std::string &key, Type &&value) |
Emplace (key, value ) into the container. | |
template<typename Type > | |
void | erase (const std::string &key) |
Erase property indexed by key from the container. | |
template<typename Type > | |
Type & | at (const std::string &key) |
Access property indexed by key. | |
template<typename Type > | |
const Type & | at (const std::string &key) const |
Access property indexed by key. | |
template<typename Type > | |
PropertiesOfType< Type > | get () |
Access properties of type Type. | |
template<typename Type > | |
const ConstPropertiesOfType< Type > | get () const |
Access properties of type Type. | |
std::unordered_set< smtk::string::Token > | types () const |
Return the set of property storage types that have been registered. | |
std::unordered_set< smtk::string::Token > | namesForType (smtk::string::Token storageType) const |
Return the set of property names that exist for the given storage type. | |
Protected Member Functions | |
ComponentProperties (const Component *component) | |
const smtk::common::UUID & | id () const override |
smtk::common::TypeMapBase< std::string > & | properties () override |
const smtk::common::TypeMapBase< std::string > & | properties () const override |
Protected Member Functions inherited from smtk::resource::Properties | |
template<typename PropertyTypeTuple > | |
std::size_t | clearInternal (const smtk::common::UUID &uid) |
This is a method subclasses may call from their implementation of clear() in order to iterate over all acceptable property types and remove a UUID from the map. | |
Protected Attributes | |
friend | Component |
const Component * | m_component |
Additional Inherited Members | |
Public Types inherited from smtk::resource::Properties | |
template<typename Type > | |
using | Indexed = std::unordered_map< smtk::common::UUID, Type > |
This specialization of smtk::resource::Properties completes aforementioned class's implementation by accessing the properties container held by the component's resource.