Choose your operating system:
Windows
macOS
Linux
| FConstStructView
|
Module |
|
Header |
/Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructView.h |
Include |
#include "StructView.h" |
struct FStructView : public FConstStructView
FStructView is "typed" struct pointer, it contains pointer to struct plus UScriptStruct pointer. FStructView 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. FStructView is passed by value. FStructView is similar to FStructOnScope, but FStructView is a view only (FStructOnScope can either own the memory or be a view)
Name | Description | |
---|---|---|
|
FStructView() |
|
|
FStructView ( |
|
|
FStructView ( |
|
|
FStructView ( |
Copy constructors |
|
FStructView ( |
|
|
FStructView ( |
Name | Description | ||
---|---|---|---|
|
T & |
GetMutable() |
Returns mutable reference to the struct, this getter assumes that all data is valid. |
|
uint8 * |
GetMutableMemory() |
Returns a mutable pointer to struct memory. |
|
T * |
GetMutablePtr() |
Returns mutable pointer to the struct, or nullptr if cast is not valid. |
|
Make ( |
Creates a new FStructView from the templated struct. |
Name | Description | ||
---|---|---|---|
|
FStructView ... |
operator= ( |
Assignment operators |
|
FStructView ... |
operator= ( |