Jameo Core Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
jm::UndoChangeInt8 Class Reference

This class encapsulates the step when a int8 value is modified. More...

Inheritance diagram for jm::UndoChangeInt8:
jm::UndoChange

Public Member Functions

 UndoChangeInt8 (Object *object, int8 *ptr)
 
void swap () override
 This method performs an undo/redo step by swapping the stored value (here) with the value pointed to by the pointer.
 
- Public Member Functions inherited from jm::UndoChange
 UndoChange (Object *object) noexcept
 Constructor for UndoChange class.
 
virtual ~UndoChange () noexcept
 Destructor.
 

Additional Inherited Members

- Public Attributes inherited from jm::UndoChange
UndoChangemNext
 Pointer to the next UndoChange element in the linked list.
 
UndoChangemPrev
 Pointer to the previous UndoChange element in the linked list.
 
ObjectmObject
 Pointer to the object in which the change is taking place.
 
jm::String objname
 

Detailed Description

This class encapsulates the step when a int8 value is modified.

This class is responsible for managing the undo/redo functionality for int8 values. It is used to store the changes made to an int8 value and perform the undo/redo operation.

Constructor & Destructor Documentation

◆ UndoChangeInt8()

jm::UndoChangeInt8::UndoChangeInt8 ( Object object,
int8 *  ptr 
)

Member Function Documentation

◆ swap()

void jm::UndoChangeInt8::swap ( )
overridevirtual

This method performs an undo/redo step by swapping the stored value (here) with the value pointed to by the pointer.

Note
This method also triggers a regenerate() in EditableObjects.

Reimplemented from jm::UndoChange.