UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCompoundChange Class Reference

#include <Change.h>

+ Inheritance diagram for FCompoundChange:

Public Member Functions

 FCompoundChange (FCompoundChangeInput &&InitInput)
 
virtual CORE_API TUniquePtr< FChangeExecute (UObject *Object) override
 
virtual CORE_API FString ToString () const override
 
virtual CORE_API void PrintToLog (class FFeedbackContext &FeedbackContext, const int32 IndentLevel=0) override
 
- Public Member Functions inherited from FSwapChange
virtual EChangeStyle GetChangeType () final
 
virtual void Apply (UObject *Object) final
 
virtual void Revert (UObject *Object) final
 
- Public Member Functions inherited from FChange
virtual bool HasExpired (UObject *Object) const
 
virtual void AddReferencedObjects (FReferenceCollector &Collector)
 
virtual SIZE_T GetSize () const
 
virtual ~FChange ()
 

Additional Inherited Members

- Public Types inherited from FChange
enum class  EChangeStyle { InPlaceSwap , CommandPattern }
 
- Protected Member Functions inherited from FChange
 FChange ()
 

Detailed Description

FCompoundChange applies a sequence of FSwapChanges. The changes are executed in reverse order (this is like a mini undo stack)

Constructor & Destructor Documentation

◆ FCompoundChange()

FCompoundChange::FCompoundChange ( FCompoundChangeInput &&  InitInput)
inlineexplicit

Constructor

Member Function Documentation

◆ Execute()

TUniquePtr< FChange > FCompoundChange::Execute ( UObject Object)
overridevirtual

Makes the change to the object, returning a new change that can be used to perfectly roll back this change

Implements FChange.

◆ PrintToLog()

void FCompoundChange::PrintToLog ( class FFeedbackContext FeedbackContext,
const int32  IndentLevel = 0 
)
overridevirtual

Prints this change to the log, including sub-changes if there are any. For compound changes, there might be multiple lines. You should not need to override this function.

Reimplemented from FChange.

◆ ToString()

FString FCompoundChange::ToString ( ) const
overridevirtual

Describes this change (for debugging)

Implements FChange.


The documentation for this class was generated from the following files: