Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Field
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Field/FieldArrayView.h |
Include | #include "Field/FieldArrayView.h" |
Syntax
template<typename InElementType>
class TFieldArrayView
Remarks
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.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TFieldArrayView
(
TArray< ElementType >& InElementArray, |
Constructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
ElementType * | begin () |
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support. |
![]() ![]() |
void | 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 size_t | Helper function returning the alignment of the inner type. | |
![]() ![]() |
constexpr size_t | GetTypeSize () |
Helper function returning the size of the inner type. |
![]() ![]() |
bool | IsEmpty () |
Returns true if the array view is empty and contains no elements. |
![]() ![]() |
bool | IsValidIndex
(
SizeType Index |
Tests if index is valid, i.e. more or equal to zero, and less than the number of elements in the array. |
![]() ![]() |
SizeType | Num () |
Returns number of elements in array. |
![]() ![]() |
void | RangeCheck
(
SizeType Index |
Checks if index is in array range. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
ElementType & | operator[]
(
SizeType Index |
Array bracket operator. Returns reference to element at give index. |
Typedefs
Name | Description |
---|---|
ElementType | |
SizeType |