|
| | 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
|
| |
| unsafe void | action (MR.HistoryAction.Type actionType) |
| |
| virtual | ~HistoryAction ()=default |
| |
template<typename T>
class MR::ChangeValue< T >
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.