Navigation
API > API/Runtime > API/Runtime/CoreUObject
Typed FStructOnScope that exposes type-safe access to the wrapped struct
| Name | TStructOnScope |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/StructOnScope.h |
| Include Path | #include "UObject/StructOnScope.h" |
Syntax
template<typename T>
class TStructOnScope : public FStructOnScope
Inheritance Hierarchy
- FStructOnScope → TStructOnScope
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| UObject/StructOnScope.h | |||
TStructOnScope
(
TStructOnScope&& InOther |
UObject/StructOnScope.h | ||
TStructOnScope
(
U&& InStruct |
UObject/StructOnScope.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TStructOnScope() |
UObject/StructOnScope.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const U * Cast () |
UObject/StructOnScope.h | ||
U * Cast () |
UObject/StructOnScope.h | ||
U * CastChecked () |
UObject/StructOnScope.h | ||
const U * CastChecked () |
UObject/StructOnScope.h | ||
T * Get() |
UObject/StructOnScope.h | ||
void InitializeAs
(
TArgs&&... InArgs |
Initialize the TStructOnScope as a struct of type U which needs to derive from T @params InArgs The arguments to pass to the constructor of type U | UObject/StructOnScope.h | |
bool InitializeFrom
(
FStructOnScope&& InOther |
Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from | UObject/StructOnScope.h | |
bool InitializeFrom
(
const FStructOnScope& InOther |
Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from | UObject/StructOnScope.h | |
void InitializeFromChecked
(
FStructOnScope&& InOther |
Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from (will assert if it contains an invalid type to store for T) | UObject/StructOnScope.h | |
void InitializeFromChecked
(
const FStructOnScope& InOther |
Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from (will assert if it contains an invalid type to store for T) | UObject/StructOnScope.h | |
void Serialize
(
FArchive& Ar |
UObject/StructOnScope.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
UObject/StructOnScope.h | ||
TStructOnScope & operator=
(
TStructOnScope&& InOther |
UObject/StructOnScope.h | ||
TStructOnScope & operator=
(
U&& InStruct |
UObject/StructOnScope.h | ||
T * operator->() |
UObject/StructOnScope.h |