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.
|
using | ValueType = DataType |
| The template parameter value type.
|
|
◆ ChangeController()
template<class DataType >
Constructor taking a default value.
- Parameters
-
◆ SetValue()
template<class DataType >
Set a value and increment the current frame if the value has been changed.
- Parameters
-
- Returns
- true if the value has been changed.
◆ GetValue()
template<class DataType >
Get the current value.
- Returns
- The current value.
◆ WasChanged()
template<class DataType >
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=()
template<class DataType >
Assignment operator.
Calls SetValue().
- Parameters
-
value | The value to assign. |
- Returns
- The object itself.
◆ operator const DataType &()
template<class DataType >
Conversion operator.
- Returns
- The value object.
The documentation for this class was generated from the following file: