| TEntityRangeImpl
|
Module |
|
Header |
/Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityRange.h |
Include |
#include "EntitySystem/MovieSceneEntityRange.h" |
template<typename... T>
struct TEntityRange : public UE::MovieScene::TEntityRangeImpl< TMakeIntegerSequence< int, sizeof...(T)>, T... >
Variadic template representing a contiguous range of entities with a specific set of 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 TEntityRange<const float, const int const bool>. If one wished to write to all the float components, we would require a TEntityRange<float, const int, const bool> etc
Name | Description | |
---|---|---|
|
TEntityRange() |
Default constructor - empty range |
|
TEntityRange ( |
Constructor that initializes the size, but no component ptrs. |
|
TEntityRange ( |
Constructor that initializes the size and components for this range |
Name | Description | ||
---|---|---|---|
|
TEntityPtr< ... |
begin() |
|
|
TEntityPtr< ... |
end() |
|
|
auto |
GetAll() |
Get all the components for the templated index as a TArrayView. |
|
auto & |
GetComponent ( |
Get the component from the templated component array index, using its index within this range. |
|
auto *& |
GetComponentArrayReference() |
Return a reference to the component array pointer at the specified index. |
|
auto * |
GetComponentOptional ( |
Get a pointer to an entity's component from its templated component array index, using the entity's index within this range. |
|
auto * |
GetRawUnchecked() |
Retrieve the raw pointer to the (possibly nullptr) component array at the templated index. |
|
Num() |
Access the size of this range |
|
|
SetComponent ( |
Assign the value of an entity's component from its templated component array index, using the entity's index within this range. |
Name | Description | ||
---|---|---|---|
|
TEntityPtr< ... |
operator[] ( |
Access a specific entity within this range |