iv::DirtyAttr_I< T > Class Template Reference
  #include <DirtyAttr.hpp>
| Public Member Functions | |
| DirtyAttr_I (ClientMarker *, AttributeEventProcessor *, T const &initial_value=T()) | |
| bool | operator< (DirtyAttr_I< T > const &right) const | 
| bool | dirty () const | 
| bool | clear_dirty () | 
| void | Set (T const &) | 
|  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::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 T>
class iv::DirtyAttr_I< T >
DirtyAttr is mostly designed to be used in view. Always in mode ValueModify.
Definition at line 14 of file DirtyAttr.hpp.
Constructor & Destructor Documentation
◆ DirtyAttr_I()
template<class T > 
      | iv::DirtyAttr_I< T >::DirtyAttr_I | ( | ClientMarker * | cm, | 
| AttributeEventProcessor * | processor, | ||
| T const & | initial_value = T() | ||
| ) | 
Definition at line 6 of file DirtyAttr.inl.
Member Function Documentation
◆ operator<()
template<class T > 
      | bool iv::DirtyAttr_I< T >::operator< | ( | DirtyAttr_I< T > const & | right | ) | const | 
Definition at line 16 of file DirtyAttr.inl.
◆ dirty()
template<class T > 
      | bool iv::DirtyAttr_I< T >::dirty | 
Definition at line 30 of file DirtyAttr.inl.
◆ clear_dirty()
template<class T > 
      | bool iv::DirtyAttr_I< T >::clear_dirty | 
Returns true if dirty flag was set before it was cleared.
Definition at line 22 of file DirtyAttr.inl.
◆ Set()
template<class T > 
      | void iv::DirtyAttr_I< T >::Set | ( | T const & | val | ) | 
Read-write rules are usually pretty specific for DirtyAttr, so we can allow modification without giving modifier ClientMarker (as is required by Attr<T>::Modify).
Definition at line 53 of file DirtyAttr.inl.
The documentation for this class was generated from the following files:
- ivorium_core/Attribute/Attributes/DirtyAttr.hpp
- ivorium_core/Attribute/Attributes/DirtyAttr.inl
 
          
          
