Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Field/FieldArrayView.h |
Include |
#include "Field/FieldArrayView.h" |
template<typename InElementType>
class TFieldArrayView
TFieldArrayView : Templated fixed-size view of another array
A statically sized view of an TArray of typed elements. The reference TArray could be resized and the TFieldArrayView will still be valid For now only used for the fields. Should be extended if required to be used somewhere else.
Name | Description | |
---|---|---|
|
TFieldArrayView ( |
Constructor. |
Name | Description | ||
---|---|---|---|
|
ElementType ... |
begin() |
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support. |
|
CheckInvariants() |
Checks array invariants: if array size is greater than zero and less than maximum. |
|
|
ElementType ... |
end() |
|
|
ElementType ... |
GetData() |
Helper function for returning a typed pointer to the first array entry. |
|
constexpr si... |
GetTypeAlignment() |
Helper function returning the alignment of the inner type. |
|
constexpr si... |
GetTypeSize() |
Helper function returning the size of the inner type. |
|
IsEmpty() |
Returns true if the array view is empty and contains no elements. |
|
|
IsValidIndex ( |
Tests if index is valid, i.e. more or equal to zero, and less than the number of elements in the array. |
|
|
Num() |
Returns number of elements in array. |
|
|
RangeCheck ( |
Checks if index is in array range. |
Name | Description | ||
---|---|---|---|
|
ElementType ... |
operator[] ( |
Array bracket operator. Returns reference to element at give index. |
Name |
Description |
---|---|
ElementType |
|
SizeType |