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