The change controller template class to control changes of an object's value.
More...
#include <murl_change_controller.h>
template<class DataType>
class Murl::ChangeController< DataType >
The change controller template class to control changes of an object's value.
The change controller counts a frame at each values's change and can check a frame change regarding to the ChangeInspector.
◆ ValueType
The template parameter value type.
◆ ChangeController()
Constructor taking a default value.
- Parameters
-
◆ SetValue()
Set a value and increment the current frame if the value has been changed.
- Parameters
-
- Returns
- true if the value has been changed.
◆ GetValue()
Get the current value.
- Returns
- The current value.
◆ WasChanged()
Check if the inspector's frame is different to the controller's frame.
- Parameters
-
inspector | The inspector to check. |
- Returns
- true if the instpector's frame was dfifferent.
◆ operator=()
Assignment operator.
Calls SetValue().
- Parameters
-
value | The value to assign. |
- Returns
- The object itself.
◆ operator const DataType &()
Conversion operator.
- Returns
- The value object.
The documentation for this class was generated from the following file: