Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/StructUtils
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/SharedStruct.h |
| Include | #include "StructUtils/SharedStruct.h" |
Syntax
template<typename BaseStructT>
struct TConstSharedStruct
Remarks
TConstSharedStruct is a type-safe FConstSharedStruct wrapper against the given BaseStruct type.
When used as a property, this automatically defines the BaseStruct property meta-data. Example:
TConstSharedStruct
TArray
Constructors
| Type | Name | Description | |
|---|---|---|---|
TConstSharedStruct
(
const TConstSharedStruct< T >& Other |
|||
TConstSharedStruct
(
const TSharedStruct< T >& ConstSharedStruct |
|||
TConstSharedStruct
(
TConstSharedStruct< T >&& Other |
|||
TConstSharedStruct
(
TSharedStruct< T >&& ConstSharedStruct |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const T & | Get () |
Returns const reference to the struct, this getter assumes that all data is valid. | |
| TEnableIf< TIsConst< T >::Value, T & >::Type | Get () |
Returns const reference to the struct, this getter assumes that all data is valid. | |
| const uint8 * | GetMemory () |
Returns const pointer to struct memory. | |
| TEnableIf< TIsConst< T >::Value, T * >::Type | GetPtr () |
Returns const pointer to the struct, or nullptr if cast is not valid. | |
| const T * | GetPtr () |
Returns const pointer to the struct. | |
| void | Initialize
(
const T& Struct |
Initializes from templated struct instance. | |
| void | Initialize () |
Initializes from templated struct type. | |
| void | Initialize
(
TArgs&&... InArgs |
Initializes from struct type and emplace args. | |
| bool | IsValid () |
Returns True if the struct is valid. | |
| TConstSharedStruct | Make () |
Creates a new TSharedStruct from templated struct type. | |
| TConstSharedStruct | Make
(
const T& Struct |
Creates a new TSharedStruct from templated struct instance. | |
| TConstSharedStruct | Creates a new TSharedStruct from struct type and optional data. | ||
| TConstSharedStruct | Make
(
TArgs&&... InArgs |
Creates a new TSharedStruct from the templated type and forward all arguments to constructor. | |
| void | Reset () |
Reset to empty. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const T& Other |
||
| TConstSharedStruct & | operator=
(
const TConstSharedStruct< T >& Other |
||
| TConstSharedStruct & | operator=
(
const TSharedStruct< T >& SharedStruct |
||
| bool | operator==
(
const T& Other |
Comparison operators. Note: it does not compare the internal structure itself |