DPsim
|
Base class of objects having attributes to access member variables. More...
#include <AttributeList.h>
Public Types | |
using | Ptr = std::shared_ptr< AttributeList > |
Public Member Functions | |
const AttributeBase::Map & | attributes () const |
template<typename T > | |
Attribute< T >::Ptr | create (const String &name, T intitialValue=T()) |
template<typename T > | |
Attribute< T >::Ptr | createDynamic (const String &name) |
AttributeBase::Ptr | attribute (const String &name) const |
Return pointer to an attribute. | |
template<typename T > | |
Attribute< T >::Ptr | attributeTyped (const String &name) const |
Return pointer to an attribute. | |
Additional Inherited Members | |
Static Public Member Functions inherited from SharedFactory< AttributeList > | |
static std::shared_ptr< AttributeList > | make (Args &&...args) |
Base class of objects having attributes to access member variables.
Definition at line 20 of file AttributeList.h.
|
inline |
Creates a new static Attribute and enters a pointer to it into this Attribute Map using the provided name.
Definition at line 36 of file AttributeList.h.
|
inline |
Creates a new dynamic Attribute and enters a pointer to it into this Attribute Map using the provided name.
Definition at line 47 of file AttributeList.h.