iv::FunctorActivatorAttribute Class Referencefinal
#include <FunctorActivatorAttribute.hpp>
Public Member Functions | |
| FunctorActivatorAttribute (ClientMarker *cm, std::function< void() > const &on_activated=nullptr) | |
| ~FunctorActivatorAttribute () | |
| void | on_activated (std::function< void() > const &) |
| void | SetAttributeMode (Attribute::ValueMode mode) |
Public Member Functions inherited from iv::Attr< Activator > | |
| Attr (ClientMarker *, AttributeEventProcessor *, bool allow_ModifyMode) | |
| Activator | Get () const |
| void | Modify (ClientMarker *modifier, Activator 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 *) |
Protected Member Functions | |
| virtual void | GetSourceValue (Activator &out) const override |
| virtual void | ModifySource (Activator 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 () |
Additional Inherited Members | |
Public Types inherited from iv::Attribute | |
| enum | ValueMode { ValueMode::Disabled, ValueMode::Value, ValueMode::ValueModify } |
Detailed Description
Definition at line 10 of file FunctorActivatorAttribute.hpp.
Constructor & Destructor Documentation
◆ FunctorActivatorAttribute()
| iv::FunctorActivatorAttribute::FunctorActivatorAttribute | ( | ClientMarker * | cm, |
| std::function< void() > const & | on_activated = nullptr |
||
| ) |
Definition at line 6 of file FunctorActivatorAttribute.cpp.
◆ ~FunctorActivatorAttribute()
| iv::FunctorActivatorAttribute::~FunctorActivatorAttribute | ( | ) |
Definition at line 16 of file FunctorActivatorAttribute.cpp.
Member Function Documentation
◆ on_activated()
| void iv::FunctorActivatorAttribute::on_activated | ( | std::function< void() > const & | val | ) |
Definition at line 21 of file FunctorActivatorAttribute.cpp.
◆ SetAttributeMode()
| void iv::FunctorActivatorAttribute::SetAttributeMode | ( | Attribute::ValueMode | mode | ) |
Definition at line 26 of file FunctorActivatorAttribute.cpp.
◆ GetSourceValue()
|
overrideprotectedvirtual |
Implements iv::Attr< Activator >.
Definition at line 31 of file FunctorActivatorAttribute.cpp.
◆ ModifySource()
|
overrideprotectedvirtual |
This should call Attr< T >::SourceValueChanged after the value is changed (can be skipped if value is the same or if the changes were not applied for some reason).
Implements iv::Attr< Activator >.
Definition at line 36 of file FunctorActivatorAttribute.cpp.
The documentation for this class was generated from the following files:
- ivorium_core/Attribute/Attributes/FunctorActivatorAttribute.hpp
- ivorium_core/Attribute/Attributes/FunctorActivatorAttribute.cpp

Public Member Functions inherited from 