Choose your operating system:
Windows
macOS
Linux
| FConstStructView
|
Module |
|
Header |
/Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructView.h |
Include |
#include "StructView.h" |
struct FConstStructView
FConstStructView is "typed" struct pointer, it contains const pointer to struct plus UScriptStruct pointer. FConstStructView does not own the memory and will not free it when out of scope. It should be only used to pass struct pointer in a limited scope, or when the user controls the lifetime of the struct being stored. E.g. instead of passing ref or pointer to a FInstancedStruct, you should use FConstStructView or FStructView to pass around a view to the contents. FConstStructView is passed by value. FConstStructView is similar to FStructOnScope, but FConstStructView is a view only (FStructOnScope can either own the memory or be a view)
Name | Description | ||
---|---|---|---|
|
const UScriptSt... |
ScriptStruct |
|
|
const uint8 ... |
StructMemory |
Name | Description | |
---|---|---|
|
FConstStructView() |
|
|
FConstStructView ( |
|
|
FConstStructView ( |
|
|
FConstStructView ( |
Copy constructors |
|
FConstStructView ( |
|
|
FConstStructView ( |
Name | Description | ||
---|---|---|---|
|
const T & |
Get() |
Returns const reference to the struct, this getter assumes that all data is valid. |
|
const uint8 ... |
GetMemory() |
Returns const pointer to struct memory. |
|
const T *... |
GetPtr() |
Returns const pointer to the struct, or nullptr if cast is not valid. |
|
const UScrip... |
GetScriptStruct() |
Returns struct type. |
|
IsValid() |
Returns True if the struct is valid. |
|
|
FConstStruct... |
Make ( |
Creates a new FStructView from the templated struct |
|
Reset() |
Reset to empty. |
|
|
ResetStructData() |
||
|
SetStructData ( |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
||
|
FConstStruct... |
operator= ( |
|
|
FConstStruct... |
operator= ( |
Assignment operators |
|
operator== ( |
Comparison operators. it does not compare the internal structure itself |