engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
UE::MovieScene::TEntityPtr< T > 模板结构体 参考

Variadic template representing a single entity with a range of entities with the same a set of typed components. 更多...

#include <MovieSceneEntityRange.h>

Public 成员函数

template<int ComponentTypeIndex>
auto & Get () const
 Retrieve the component at the specified Index within this TEntityPtr's parameters. 更多...
 
template<int ComponentTypeIndex>
auto * GetOptional () const
 Optionally retrieve the component at the specified ComponentTypeIndex within this TEntityPtr's parameters. 更多...
 
 operator bool () const
 Test whether this pointer is valid
 
TEntityPtr & operator* ()
 Dereference this pointer
 
TEntityPtr & operator++ ()
 Increment this pointer
 
TEntityPtr & operator-- ()
 Increment this pointer
 
template<int ComponentTypeIndex, typename ValueType >
void Set (ValueType &&InValue) const
 Set the value of the component at the specified index withinin this entity 更多...
 
 TEntityPtr (int32 InEntityIndex, const TEntityRange< T... > *InOwner)
 Construct this range from a range and index
 

友元

bool operator!= (const TEntityPtr &A, const TEntityPtr &B)
 Compare this pointer with another for equality
 

详细描述

template<typename... T>
struct UE::MovieScene::TEntityPtr< T >

Variadic template representing a single entity with a range of entities with the same a set of typed components.

The template parameters define each component type by index, whose constness should match the read/write semantics of the accessor. For example, an entity with a float, int and bool component, accessed read-only should be represented by a TEntityPtr<const float, const int const bool>. If one wished to write to all the float components, we would require a TEntityPtr<float, const int, const bool> etc

成员函数说明

◆ Get()

template<typename... T>
template<int ComponentTypeIndex>
auto & UE::MovieScene::TEntityPtr< T >::Get ( ) const
inline

Retrieve the component at the specified Index within this TEntityPtr's parameters.

Not to be used for Read/WriteOptional variants.

注解
The const qualifier of the component will match the access mode for the component (const for read, non-const for write)
返回
A reference to the component value

◆ GetOptional()

template<typename... T>
template<int ComponentTypeIndex>
auto * UE::MovieScene::TEntityPtr< T >::GetOptional ( ) const
inline

Optionally retrieve the component at the specified ComponentTypeIndex within this TEntityPtr's parameters.

注解
The const qualifier of the component will match the access mode for the component (const for read, non-const for write)
返回
A pointer to the component value, or nullptr if this entity does not have such a component.

◆ Set()

template<typename... T>
template<int ComponentTypeIndex, typename ValueType >
void UE::MovieScene::TEntityPtr< T >::Set ( ValueType &&  InValue) const
inline

Set the value of the component at the specified index withinin this entity

参数
InValueThe value to assign to the component

该结构体的文档由以下文件生成: