DPsim
Loading...
Searching...
No Matches
CPS::AttributeList Class Reference

Base class of objects having attributes to access member variables. More...

#include <AttributeList.h>

Inheritance diagram for CPS::AttributeList:
[legend]
Collaboration diagram for CPS::AttributeList:
[legend]

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)
 

Detailed Description

Base class of objects having attributes to access member variables.

Definition at line 20 of file AttributeList.h.

Member Typedef Documentation

◆ Ptr

using CPS::AttributeList::Ptr = std::shared_ptr<AttributeList>

Definition at line 26 of file AttributeList.h.

Constructor & Destructor Documentation

◆ AttributeList()

CPS::AttributeList::AttributeList ( )
inline

Definition at line 28 of file AttributeList.h.

Member Function Documentation

◆ attribute()

AttributeBase::Ptr CPS::AttributeList::attribute ( const String & name) const
inline

Return pointer to an attribute.

Definition at line 51 of file AttributeList.h.

◆ attributes()

const AttributeBase::Map & CPS::AttributeList::attributes ( ) const
inline

Definition at line 30 of file AttributeList.h.

◆ attributeTyped()

template<typename T>
Attribute< T >::Ptr CPS::AttributeList::attributeTyped ( const String & name) const
inline

Return pointer to an attribute.

Definition at line 61 of file AttributeList.h.

◆ create()

template<typename T>
Attribute< T >::Ptr CPS::AttributeList::create ( const String & name,
T intitialValue = T() )
inline

Definition at line 34 of file AttributeList.h.

◆ createDynamic()

template<typename T>
Attribute< T >::Ptr CPS::AttributeList::createDynamic ( const String & name)
inline

Definition at line 43 of file AttributeList.h.


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