![]() |
Ark Server API (ASE) - Wiki
|
#include <UnrealTemplate.h>
Inheritance diagram for TGuardValue< Type >:
Collaboration diagram for TGuardValue< Type >:Public Member Functions | |
| TGuardValue (Type &ReferenceValue, const Type &NewValue) | |
| ~TGuardValue () | |
| FORCEINLINE const Type & | operator* () const |
Private Attributes | |
| Type & | RefValue |
| Type | OldValue |
Additional Inherited Members | |
Private Member Functions inherited from FNoncopyable | |
| FNoncopyable () | |
| ~FNoncopyable () | |
exception-safe guard around saving/restoring a value. Commonly used to make sure a value is restored even if the code early outs in the future. Usage: TGuardValue<bool> GuardSomeBool(bSomeBool, false); // Sets bSomeBool to false, and restores it in dtor.
Definition at line 248 of file UnrealTemplate.h.
|
inline |
Definition at line 250 of file UnrealTemplate.h.
|
inline |
Definition at line 255 of file UnrealTemplate.h.
|
inline |
Overloaded dereference operator. Provides read-only access to the original value of the data being tracked by this struct
Definition at line 266 of file UnrealTemplate.h.
|
private |
Definition at line 273 of file UnrealTemplate.h.
|
private |
Definition at line 272 of file UnrealTemplate.h.