![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SharedStruct.h>
Static Public Member Functions | |
| template<typename T > | |
| static FConstSharedStruct | Make () |
| template<typename T > | |
| static FConstSharedStruct | Make (const T &Struct) |
| static FConstSharedStruct | Make (const UScriptStruct *InScriptStruct, const uint8 *InStructMemory=nullptr) |
| template<typename T , typename... TArgs> | |
| static FConstSharedStruct | Make (TArgs &&... InArgs) |
Protected Attributes | |
| TSharedPtr< const FStructSharedMemory > | StructMemoryPtr |
FConstSharedStruct is the same as the FSharedStruct but restricts the API to return a const struct type.
A 'const FConstSharedStruct' cannot be made to point at another instance of a struct, whilst a vanilla FConstSharedStruct can. In either case, the struct data is immutable.
See FSharedStruct for more information.
|
default |
|
default |
|
inline |
|
default |
|
inline |
| void FConstSharedStruct::AddStructReferencedObjects | ( | class FReferenceCollector & | Collector | ) |
|
inline |
Determines whether Other contains the same values as this
| FConstSharedStruct::GENERATED_BODY | ( | ) |
|
inlineconstexpr |
Returns const reference to the struct, this getter assumes that all data is valid.
|
inline |
Returns const pointer to struct memory.
|
inlineconstexpr |
Returns const pointer to the struct, or nullptr if cast is not valid.
|
inline |
Returns struct type.
|
inline |
| bool FConstSharedStruct::Identical | ( | const FConstSharedStruct * | Other, |
| uint32 | PortFlags | ||
| ) | const |
For StructOpsTypeTraits
Initializes from a templated struct type.
Initializes from other related struct types. This will create a new instance of the shared struct memory.
|
inline |
Initializes from a struct type and optional data. This will create a new instance of the shared struct memory.
|
inline |
Initializes from struct type and emplace args. This will create a new instance of the shared struct memory.
|
inline |
Returns True if the struct is valid.
|
inlinestatic |
Creates a new FSharedStruct from a templated struct type. This will create a new instance of the shared struct memory.
|
inlinestatic |
Creates a new FSharedStruct from templated struct instance. This will create a new instance of the shared struct memory.
|
inlinestatic |
Creates a new FSharedStruct from a struct type and optional data. This will create a new instance of the shared struct memory.
|
inlinestatic |
Creates a new FSharedStruct from the templated type and forward all arguments to constructor. This will create a new instance of the shared struct memory.
|
default |
|
inline |
|
default |
|
inline |
Comparison operators. Note: it does not compare the internal structure itself
|
inline |
Reset to empty.
|
protected |