iv::ComponentAttr< Component, T > Class Template Referencefinal
#include <ComponentAttr.hpp>
Public Member Functions | |
ComponentAttr (iv::ClientMarker *cm, T const &initial_value=T()) | |
~ComponentAttr () | |
ComponentAttr (ComponentAttr< Component, T > const &src) | |
ComponentAttr< Component, T > & | operator= (ComponentAttr< Component, T > const &src) |
void | Index (Component *component, ComponentAttr_Index< Component > *index) |
void | Index () |
Public Member Functions inherited from iv::SharedAttr_I< T > | |
SharedAttr_I (ClientMarker *cm, AttributeEventProcessor *, T const &initial_value=T()) | |
Public Member Functions inherited from iv::Attr< T > | |
Attr (ClientMarker *, AttributeEventProcessor *, bool allow_ModifyMode) | |
T | Get () const |
void | Modify (ClientMarker *modifier, T const &) |
Public Member Functions inherited from iv::Attribute | |
Attribute (ClientMarker *, AttributeEventProcessor *event_processor, bool allow_ModifyMode) | |
ClientMarker * | owner () const |
std::type_index | Type () |
ValueMode | Mode () const |
std::any | GetAny () |
void | ModifyMode (ClientMarker *modifier, Attribute::ValueMode) |
void | ModifyAny (ClientMarker *modifier, std::any) |
void | Insert_Listener (AttributeListener *) |
void | Remove_Listener (AttributeListener *) |
Additional Inherited Members | |
Public Types inherited from iv::Attribute | |
enum | ValueMode { ValueMode::Disabled, ValueMode::Value, ValueMode::ValueModify } |
Protected Member Functions inherited from iv::SharedAttr_I< T > | |
virtual void | GetSourceValue (T &out) const override |
virtual void | ModifySource (T const &) override |
Protected Member Functions inherited from iv::Attribute | |
void | SetAttributeMode (ValueMode) |
void | SourceValueChanged () |
AttributeEventProcessor * | event_processor () |
void | event_processor (AttributeEventProcessor *) |
void | Notify_Activated () |
void | Notify_Deactivated () |
bool | allow_ModifyMode () |
Detailed Description
template<class Component, class T>
class iv::ComponentAttr< Component, T >
Definition at line 37 of file ComponentAttr.hpp.
Constructor & Destructor Documentation
◆ ComponentAttr() [1/2]
template<class Component , class T >
iv::ComponentAttr< Component, T >::ComponentAttr | ( | iv::ClientMarker * | cm, |
T const & | initial_value = T() |
||
) |
Definition at line 73 of file ComponentAttr.inl.
◆ ~ComponentAttr()
template<class Component , class T >
iv::ComponentAttr< Component, T >::~ComponentAttr |
Definition at line 82 of file ComponentAttr.inl.
◆ ComponentAttr() [2/2]
template<class Component , class T >
iv::ComponentAttr< Component, T >::ComponentAttr | ( | ComponentAttr< Component, T > const & | src | ) |
Definition at line 88 of file ComponentAttr.inl.
Member Function Documentation
◆ operator=()
template<class Component , class T >
ComponentAttr< Component, T > & iv::ComponentAttr< Component, T >::operator= | ( | ComponentAttr< Component, T > const & | src | ) |
Definition at line 97 of file ComponentAttr.inl.
◆ Index() [1/2]
template<class Component , class T >
void iv::ComponentAttr< Component, T >::Index | ( | Component * | component, |
ComponentAttr_Index< Component > * | index | ||
) |
These references are not copied in copy constructor and assignment operator.
Definition at line 103 of file ComponentAttr.inl.
◆ Index() [2/2]
template<class Component , class T >
void iv::ComponentAttr< Component, T >::Index |
Same as ComponentAttr< Component, T >::Index( nullptr, nullptr ).
Definition at line 119 of file ComponentAttr.inl.
The documentation for this class was generated from the following files:
- ivorium_model/ModelTools/ComponentAttr.hpp
- ivorium_model/ModelTools/ComponentAttr.inl