SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A specialization of the Properties container for a single type. More...
#include <Properties.h>
Public Member Functions | |
bool | contains (const std::string &key) const |
Check whether a property associated with key is present. | |
bool | insert (const std::string &key, const Type &value) |
Insert (key, value ) into the container. | |
bool | emplace (const std::string &key, Type &&value) |
Emplace (key, value ) into the container. | |
void | erase (const std::string &key) |
Erase property indexed by key from the container. | |
Type & | operator[] (const std::string &key) |
Access property indexed by key. | |
Type & | at (const std::string &key) |
Access property indexed by key. | |
const Type & | at (const std::string &key) const |
Access property indexed by key. | |
bool | empty () const |
Check if any properties of this type are associated with m_id. | |
std::size_t | clear () |
Remove all properties of this type corresponding to our ID. More... | |
std::set< std::string > | keys () const |
Friends | |
class | Properties |
A specialization of the Properties container for a single type.
PropertiesOfType provides a non-templated API for accessing property information.
|
inline |
Remove all properties of this type corresponding to our ID.
The returned value is the number of removed property entries.