Variadic template representing a single entity with a range of entities with the same a set of typed components.
更多...
|
| 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
|
| |
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