Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
Inheritance Hierarchy
- FStructOnScope
- TStructOnScope
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/StructOnScope.h |
Include | #include "UObject/StructOnScope.h" |
Syntax
template<typename T>
class TStructOnScope : public FStructOnScope
Remarks
Typed FStructOnScope that exposes type-safe access to the wrapped struct
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
TStructOnScope
(
TStructOnScope&& InOther |
||
![]() |
TStructOnScope
(
U&& InStruct |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const U * | Cast () |
|
![]() |
U * | Cast () |
|
![]() |
U * | CastChecked () |
|
![]() ![]() |
const U * | CastChecked () |
|
![]() ![]() |
T * | Get () |
|
![]() |
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 |
![]() |
bool | InitializeFrom
(
const FStructOnScope& InOther |
Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from |
![]() |
bool | InitializeFrom
(
FStructOnScope&& InOther |
Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from |
![]() |
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) |
![]() |
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) |
![]() |
void |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
|||
![]() |
TStructOnScope & | operator=
(
TStructOnScope&& InOther |
|
![]() |
TStructOnScope & | operator=
(
U&& InStruct |
|
![]() ![]() |
T * | operator-> () |