Navigation
Unreal Engine C++ API Reference > Runtime > MovieScene > EntitySystem
Inheritance Hierarchy
- TComponentPtr
- TRead
- TComponentLock< TRead< T > >
- TReadOptional
- TComponentLock< TReadOptional< T > >
- TWrite
- TComponentLock< TWrite< T > >
- TWriteOptional
- TComponentLock< TWriteOptional< T > >
References
Module | MovieScene |
Header | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneComponentPtr.h |
Include | #include "EntitySystem/MovieSceneComponentPtr.h" |
Syntax
template<typename T>
struct TComponentPtr
Remarks
Facade for any component data type
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
T * | ComponentPtr |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
TComponentPtr
(
T* InComponentPtr |
||
![]() |
TComponentPtr
(
const TComponentPtr& RHS |
||
![]() |
TComponentPtr
(
TComponentPtr&& RHS |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TArrayView< T > | AsArray
(
int32 Num |
Retrieve this component data as an array view of the specified size (usually the size will be FEntityAllocation::Num()) |
![]() ![]() |
T * | AsPtr () |
Explicitly convert this component data to its underlying pointer type |
![]() ![]() |
ValueType | ComponentAtIndex
(
int32 Index |
|
![]() ![]() |
bool | IsValid () |
|
![]() ![]() |
TArrayView< T > | Slice
(
int32 StartIndex, |
Retrieve a slice of this component data as an array view of the specified size and offset (usually the size will be FEntityAllocation::Num()) |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
|||
![]() ![]() |
operator T * () |
||
![]() ![]() |
ValueType | operator* () |
|
![]() ![]() |
ValueType | operator[]
(
int32 Index |
|
![]() |
TComponentPtr & | operator=
(
const TComponentPtr& RHS |
|
![]() |
TComponentPtr & | operator=
(
TComponentPtr&& RHS |
|
![]() ![]() |
T * | operator-> () |
Typedefs
Name | Description |
---|---|
ValueType | Value type is either a T or const T& for read-only types, or T& for writeable types |