TComponentPtr

Facade for any component data type

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Protected variable

T *

 

ComponentPtr

Constructors

Name Description

Public function

TComponentPtr()

Public function

TComponentPtr

(
    T* InComponentPtr
)

Public function

TComponentPtr

(
    const TComponentPtr& RHS
)

Public function

TComponentPtr

(
    TComponentPtr&& RHS
)

Functions

Name Description

Public function Const

TArrayView< ...

 

AsArray

(
    int32 Num
)

Retrieve this component data as an array view of the specified size (usually the size will be FEntityAllocation::Num())

Public function Const

T *

 

AsPtr()

Explicitly convert this component data to its underlying pointer type

Public function Const

bool

 

IsValid()

Public function Const

TArrayView< ...

 

Slice

(
    int32 StartIndex,
    int32 Num
)

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

Name Description

Public function Const

 

operator bool()

Public function Const

 

operator T *()

Public function Const

ValueType

 

operator*()

Public function Const

ValueType

 

operator[]

(
    int32 Index
)

Public function

TComponentPt...

 

operator=

(
    const TComponentPtr& RHS
)

Public function

TComponentPt...

 

operator=

(
    TComponentPtr&& RHS
)

Public function Const

T *

 

operator->()

Typedefs

Name

Description

ValueType

Value type is either a T or const T& for read-only types, or T& for writeable types

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss