SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | Friends | List of all members
smtk::resource::PropertiesOfType< Type > Class Template Reference

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
 

Detailed Description

template<typename Type>
class smtk::resource::PropertiesOfType< Type >

A specialization of the Properties container for a single type.

PropertiesOfType provides a non-templated API for accessing property information.

Member Function Documentation

◆ clear()

template<typename Type >
std::size_t smtk::resource::PropertiesOfType< Type >::clear ( )
inline

Remove all properties of this type corresponding to our ID.

The returned value is the number of removed property entries.


The documentation for this class was generated from the following file: