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