Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FCompoundChange Class Reference

#include <Change.h>

+ Inheritance diagram for FCompoundChange:
+ Collaboration diagram for FCompoundChange:

Public Member Functions

 FCompoundChange (FCompoundChangeInput &&InitInput)
 
virtual TUniquePtr< FChangeExecute (UObject *Object) override
 
virtual FString ToString () const override
 
virtual 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 ~FChange ()
 

Private Member Functions

 FCompoundChange (const FCompoundChange &)=delete
 
FCompoundChangeoperator= (const FCompoundChange &)=delete
 

Private Attributes

FCompoundChangeInput Input
 

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)

Definition at line 168 of file Change.h.

Constructor & Destructor Documentation

◆ FCompoundChange() [1/2]

FCompoundChange::FCompoundChange ( FCompoundChangeInput && InitInput)
inlineexplicit

Constructor

Definition at line 174 of file Change.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FCompoundChange() [2/2]

FCompoundChange::FCompoundChange ( const FCompoundChange & )
privatedelete

Member Function Documentation

◆ Execute()

virtual 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.

◆ operator=()

FCompoundChange & FCompoundChange::operator= ( const FCompoundChange & )
privatedelete

◆ PrintToLog()

virtual 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()

virtual FString FCompoundChange::ToString ( ) const
overridevirtual

Describes this change (for debugging)

Implements FChange.

Member Data Documentation

◆ Input

FCompoundChangeInput FCompoundChange::Input
private

The data we need to make this change

Definition at line 188 of file Change.h.


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