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

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

Inheritance diagram for jm::UndoChangeObjectRef:
jm::UndoChange

Public Member Functions

 UndoChangeObjectRef (Object *object, Object **ptr)
 
 ~UndoChangeObjectRef () override
 
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 Property value is modified.

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

Constructor & Destructor Documentation

◆ UndoChangeObjectRef()

jm::UndoChangeObjectRef::UndoChangeObjectRef ( Object *  object,
Object **  ptr 
)

◆ ~UndoChangeObjectRef()

jm::UndoChangeObjectRef::~UndoChangeObjectRef ( )
override

Member Function Documentation

◆ swap()

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