#include <MRChangeValue.h>
Public Member Functions | |
ChangeValue (const std::string &name, T *currentValue, T oldValue) | |
Constructed from original object's pointer and old value. | |
virtual std::string | name () const override |
virtual void | action (HistoryAction::Type) override |
This function is called on history action (undo, redo, etc.) | |
virtual size_t | heapBytes () const override |
returns the amount of memory this object occupies on heap | |
Public Member Functions inherited from MR::HistoryAction | |
virtual | ~HistoryAction ()=default |
Additional Inherited Members | |
Public Types inherited from MR::HistoryAction | |
enum class | Type { Undo , Redo } |
This is an action to undo/redo a change in the value of a variable in the case of temporary objects, it is necessary to delete the history. this module should not exist anymore than the object that was passed to it.
|
inline |
Constructed from original object's pointer and old value.
|
inlineoverridevirtual |
This function is called on history action (undo, redo, etc.)
Implements MR::HistoryAction.
|
inlinenodiscardoverridevirtual |
returns the amount of memory this object occupies on heap
Implements MR::HistoryAction.
|
inlineoverridevirtual |
Implements MR::HistoryAction.