Choose your operating system:
Windows
macOS
Linux
| FConstSharedStruct
|
Module |
|
Header |
/Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Public/SharedStruct.h |
Include |
#include "SharedStruct.h" |
USTRUCT()
struct FSharedStruct : public FConstSharedStruct
FSharedStruct works similarly as a TSharedPtr<FInstancedStruct> but removes the double pointer indirection that would create. (One pointer for the FInstancedStruct and one pointer for the struct memory it is wrapping). Also
that because of its implementation, it is not possible for now to go from a struct reference or struct view back to a shared struct. This struct type is also convertible to a FStructView and is the preferable way of passing it as a parameter just as the FInstancedStruct. If the calling code would like to keep a shared pointer to the struct, you may pass the FSharedStruct as a parameter but it is recommended to pass it as a "const FSharedStruct&" to limit the unnecessary recounting.
Name | Description | |
---|---|---|
|
FSharedStruct() |
|
|
FSharedStruct ( |
|
|
FSharedStruct ( |
|
|
FSharedStruct ( |
Copy constructors |
|
FSharedStruct ( |
Name | Description | |
---|---|---|
|
~FSharedStruct() |
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. |
|
InitializeAs ( |
Initializes from struct type and emplace construct. |
|
|
InitializeAs ( |
Initializes from struct type and optional data. |
|
|
FSharedStruc... |
Make() |
Creates a new FSharedStruct from templated struct type. |
|
FSharedStruc... |
Make ( |
Creates a new FSharedStruct from templated struct. |
|
FSharedStruc... |
Make ( |
Creates a new FSharedStruct from the templated type and forward all arguments to constructor. |
Name | Description | ||
---|---|---|---|
|
FSharedStruc... |
operator= ( |
|
|
FSharedStruc... |
operator= ( |
Assignment operators |
|
FSharedStruc... |
operator= ( |