Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/StructUtils
Inheritance Hierarchy
- FStructView
- TStructView
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/StructView.h |
| Include | #include "StructUtils/StructView.h" |
Syntax
template<typename BaseStructT>
struct TStructView : public FStructView
Remarks
TStructView is a type-safe FStructView wrapper against the given BaseStruct type.
Example:
TStructView
TArray
Constructors
| Type | Name | Description | |
|---|---|---|---|
TStructView () |
|||
TStructView
(
BaseStructT& InStruct |
|||
TStructView
(
uint8* InStructMemory |
|||
TStructView
(
TInstancedStruct< T >& InstancedStruct |
|||
TStructView
(
const TSharedStruct< T >& SharedStruct |
Functions
| Type | Name | Description | |
|---|---|---|---|
| T & | Get () |
Returns mutable reference to the struct, this getter assumes that all data is valid. | |
| T * | GetPtr () |
Returns mutable pointer to the struct, or nullptr if cast is not valid. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const TStructView< T >& Other |
||
| bool | operator==
(
const TStructView< T >& Other |
Comparison operators. Note: it does not compare the internal structure itself |