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

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

Inheritance diagram for jm::UndoChangeBool:
jm::UndoChange

Public Member Functions

 UndoChangeBool (Object *object, bool *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
UndoChange * mNext
 Pointer to the next UndoChange element in the linked list.
 
UndoChange * mPrev
 Pointer to the previous UndoChange element in the linked list.
 
Object * mObject
 Pointer to the object in which the change is taking place.
 
jm::String objname
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ UndoChangeBool()

jm::UndoChangeBool::UndoChangeBool ( Object *  object,
bool *  ptr 
)

Member Function Documentation

◆ swap()

void jm::UndoChangeBool::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.