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

This element of a linked list stores the changes made to the file in an Undo Step. More...

Inheritance diagram for jm::UndoChange:
jm::UndoChangeBool jm::UndoChangeBuffer jm::UndoChangeColour jm::UndoChangeDate jm::UndoChangeDouble jm::UndoChangeFloat jm::UndoChangeInt16 jm::UndoChangeInt32 jm::UndoChangeInt64 jm::UndoChangeInt8 jm::UndoChangeInteger jm::UndoChangeObjectRef jm::UndoChangeSizeType jm::UndoChangeString jm::UndoChangeUInt16 jm::UndoChangeUInt32 jm::UndoChangeUInt64 jm::UndoChangeUInt8 jm::UndoChangeVertex2 jm::UndoChangeVertex3 jm::UndoObjectRelease jm::UndoRegenerationMarker

Public Member Functions

 UndoChange (Object *object) noexcept
 Constructor for UndoChange class.
 
virtual ~UndoChange () noexcept
 Destructor.
 
virtual void swap ()
 This method performs an undo/redo step by swapping the stored value (here) with the value pointed to by the pointer.
 

Public Attributes

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 element of a linked list stores the changes made to the file in an Undo Step.

This class should not be derived from Object as it should only be referenced within the UndoManager. External references clearly violate the concept and should be avoided!

Constructor & Destructor Documentation

◆ UndoChange()

jm::UndoChange::UndoChange ( Object object)
explicitnoexcept

Constructor for UndoChange class.

Parameters
objectPointer to the object in which the change is taking place.

◆ ~UndoChange()

virtual jm::UndoChange::~UndoChange ( )
virtualnoexcept

Destructor.

Member Function Documentation

◆ swap()

virtual void jm::UndoChange::swap ( )
virtual

Member Data Documentation

◆ mNext

UndoChange* jm::UndoChange::mNext

Pointer to the next UndoChange element in the linked list.

◆ mObject

Object* jm::UndoChange::mObject

Pointer to the object in which the change is taking place.

◆ mPrev

UndoChange* jm::UndoChange::mPrev

Pointer to the previous UndoChange element in the linked list.

◆ objname

jm::String jm::UndoChange::objname