SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
The Properties classes defined in this namespace closely correlate to counterparts in smtk::common::TypeMap, but are tailored to provide a UUID as an additional lookup parameter. More...
#include <Properties.h>
Public Member Functions | |
virtual std::size_t | eraseId (const smtk::common::UUID &uid)=0 |
Erase all properties held by this object which correspond to the given uid. More... | |
virtual bool | isCopyable () const =0 |
Return true if properties of this type may be copy-constructed. | |
virtual std::size_t | copyFrom (PropertiesBase *other, smtk::string::Token propertyName, const smtk::common::UUID &otherId, const smtk::common::UUID &uid)=0 |
Copy the property or properties held by other which correspond to otherId into this object under the given uid. More... | |
virtual void | allIds (std::set< smtk::common::UUID > &ids) const =0 |
Insert (into ids) all of the UUIDs that properties held by this object reference. | |
virtual void | allNames (std::unordered_set< smtk::string::Token > &names) const =0 |
Insert (into names) all of the property names that exist in this object. | |
virtual void | idsWithProperty (smtk::string::Token &propName, std::set< smtk::common::UUID > &ids) const =0 |
Insert (into ids) all of the UUIDs for which propName is defined. | |
The Properties classes defined in this namespace closely correlate to counterparts in smtk::common::TypeMap, but are tailored to provide a UUID as an additional lookup parameter.
A common base class for resource properties. It is used to provide an API for removing properties associated with removed IDs to avoid having to upcast to a templated type.
|
pure virtual |
Copy the property or properties held by other which correspond to otherId into this object under the given uid.
If propertyName is invalid, then all properties are copied. Otherwise, just the named property is copied (assuming it exists in other).
The number of entries copied is returned.
Implemented in smtk::resource::detail::PropertiesOfType< std::unordered_map< smtk::common::UUID, Type > >.
|
pure virtual |
Erase all properties held by this object which correspond to the given uid.
The number of entries removed is returned.
Implemented in smtk::resource::detail::PropertiesOfType< std::unordered_map< smtk::common::UUID, Type > >.