Module |
|
Header |
/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilReflection.h |
Include |
#include "NUTUtilReflection.h" |
class FVMReflection
Name | Description | |
---|---|---|
|
FVMReflection ( |
Copy constructor - used regularly to copy reflection states, but without passing on history or temporary variables (such as error return) |
|
FVMReflection ( |
|
|
FVMReflection ( |
Struct constructor - initializing from a scoped struct (allows you to use reflection, to work with unknown structs) |
|
FVMReflection ( |
FFuncReflection copy constructor - initializing from a function reflection struct instance (shortcut to reference its parameters) |
Name | Description | ||
---|---|---|---|
|
DebugDump() |
Does a complete debug dump of the state of this reflection instance, and disables further use |
|
|
FORCEINLINEv... |
DisableFieldVerification() |
Disables the need to verify field types before accessing structs etc., to e.g. make use of the 'reflect' console command easier. |
|
GENERIC_POINTER_CAST_ASSIGN ( |
||
|
GENERIC_POINTER_CAST_ASSIGN ( |
||
|
GENERIC_POINTER_CAST_ASSIGN ( |
Declare generic pointer casts. |
|
|
FORCEINLINEi... |
GetArrayNum() |
If pointing to an array, returns the array size. |
|
FORCEINLINEF... |
GetHistory() |
Returns the reflection helper history as a string |
|
InType |
GetNumericTypeCast ( |
|
|
FORCEINLINE ... |
GetStructRef() |
Gets a reference to the struct being pointed to, with compile-time and runtime checks on the validity of the struct type NOTE: This alters the state of the reflection object. |
|
InType |
GetTypeCast ( |
|
|
TValueOrErro... |
GetValueAsString() |
Converts the value of whatever the reflection helper is pointing to, into a human readable string. |
|
FORCEINLINEb... |
IsError() |
Returns the current error status |
|
NUMERIC_CAST_ASSIGN ( |
||
|
NUMERIC_CAST_ASSIGN ( |
||
|
NUMERIC_CAST_ASSIGN ( |
||
|
NUMERIC_CAST_ASSIGN ( |
||
|
NUMERIC_CAST_ASSIGN ( |
||
|
NUMERIC_CAST_ASSIGN ( |
||
|
NUMERIC_CAST_ASSIGN ( |
||
|
NUMERIC_CAST_ASSIGN_BASIC ( |
Declare readonly numeric casts. |
|
|
NUMERIC_CAST_ASSIGN_BASIC ( |
||
|
NUMERIC_CAST_ASSIGN_BASIC ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
Declare numeric pointer casts. |
|
|
NUMERIC_POINTER_CAST_ASSIGN ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
||
|
NUMERIC_POINTER_CAST_ASSIGN ( |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Cast to bool |
|
|
operator FName() |
Cast to FName |
|
|
operator FScriptArray *() |
Cast to FScriptArray* pointer (only valid for dynamic arrays), then cast to TArray |
|
|
operator FSoftObjectPtr *() |
Cast to writable FSoftObjectPtr* (where write actions should be performed through FSoftObjectPrr methods, not by pointer assignment). |
|
|
operator FString() |
Cast to FString |
|
|
operator FText() |
Cast to FText |
|
|
operator TSharedPtr< FScriptArrayHelper >() |
Cast to an FScriptArrayHelper, which is useful for performing operations on arrays of an uncertain/undefined type NOTE: Useful specifically in cases where you need to add to an array, less so for array iteration. |
|
|
operator UObject *() |
Cast to UObject* |
|
|
operator UObject **() |
Cast to writable UObject* pointer (only valid for object properties) |
|
|
operator void *() |
Cast operator for structs in general - cast to void*, then cast to StructType* |
|
|
FVMReflectio... |
operator, ( |
Allows an inline method of returning the error status - the comma operator has the lowest precedence, so is executed last. |
|
FVMReflectio... |
operator, ( |
As above, but returns the complete reflection history so far, including any errors |
|
FVMReflectio... |
operator[] ( |
Array subscript operator, used to access static/dynamic array elements |
|
FVMReflectio... |
operator[] ( |
Array subscript operator, which takes a string for verifying that an array is of a particular type, e.g. ["uint8"]. |
|
FVMReflectio... |
operator= ( |
Special assignment operators Assign a value to a bool property |
|
FVMReflectio... |
operator= ( |
Assign a value to an object property |
|
FVMReflectio... |
operator= ( |
Assign a value to either a string or an enum property (autodetects enums) NOTE: Enums must be specified in format: EEnumName::EnumValueName |
|
FVMReflectio... |
operator->* ( |
Member access operator. Used to access object/struct properties. |
|
FORCEINLINEF... |
operator->* ( |