SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | List of all members
smtk::resource::detail::Properties Class Reference

Properties is a generalized container for storing and accessing data using a std::string key. More...

#include <Properties.h>

Inheritance diagram for smtk::resource::detail::Properties:
[legend]
Collaboration diagram for smtk::resource::detail::Properties:
[legend]

Public Member Functions

template<typename List >
 Properties (identity< List >)
 
std::size_t eraseId (const smtk::common::UUID &id)
 
template<typename Type >
std::size_t eraseIdForType (const smtk::common::UUID &id)
 
template<typename Type >
void insertPropertyType ()
 
template<typename Tuple >
void insertPropertyTypes ()
 
- Public Member Functions inherited from smtk::common::TypeMapBase< std::string >
bool contains (const std::string &key) const
 Check whether a value of type Type associated with key is present. More...
 
bool insert (const std::string &key, const Type &value)
 Insert (Type, key, value ) into the map.
 
bool emplace (const std::string &key, Type &&value)
 Emplace (Type, key, value ) into the map.
 
void erase (const std::string &key)
 Erase value of type Type indexed by key from the map.
 
Type & at (const std::string &key)
 Access value of type Type indexed by key. More...
 
const Type & at (const std::string &key) const
 Access value of type Type indexed by key. More...
 
TypeMapEntry< std::string, Type > & get ()
 Access values of type Type.
 
const TypeMapEntry< std::string, Type > & get () const
 Access values of type Type.
 
bool containsType () const
 Check whether type Type is supported.
 
std::unordered_map< std::string, TypeMapEntryBase * > & data ()
 Access the class's underlying data.
 
const std::unordered_map< std::string, TypeMapEntryBase * > & data () const
 

Detailed Description

Properties is a generalized container for storing and accessing data using a std::string key.

This Properties differs from smtk::common::TypeMapBase by constructing custom TypeMapEntries<> that are tailored for use with additional UUID indexing.


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