![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <FieldArrayView.h>
Public Types | |
| using | ElementType = InElementType |
| using | SizeType = int32 |
Public Member Functions | |
| TFieldArrayView (TArray< ElementType > &InElementArray, const SizeType InArrayOffset, const SizeType InArrayNum) | |
| FORCEINLINE ElementType * | GetData () const |
| FORCEINLINE void | CheckInvariants () const |
| FORCEINLINE void | RangeCheck (SizeType Index) const |
| FORCEINLINE bool | IsValidIndex (SizeType Index) const |
| bool | IsEmpty () const |
| FORCEINLINE SizeType | Num () const |
| FORCEINLINE ElementType & | operator[] (SizeType Index) const |
| FORCEINLINE ElementType * | begin () const |
| FORCEINLINE ElementType * | end () const |
Static Public Member Functions | |
| static FORCEINLINE constexpr size_t | GetTypeSize () |
| static FORCEINLINE constexpr size_t | GetTypeAlignment () |
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.
| using TFieldArrayView< InElementType >::ElementType = InElementType |
| using TFieldArrayView< InElementType >::SizeType = int32 |
|
inline |
Constructor.
|
inline |
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support.
|
inline |
Checks array invariants: if array size is greater than zero and less than maximum.
|
inline |
|
inline |
Helper function for returning a typed pointer to the first array entry.
|
inlinestaticconstexpr |
Helper function returning the alignment of the inner type.
|
inlinestaticconstexpr |
Helper function returning the size of the inner type.
|
inline |
Returns true if the array view is empty and contains no elements.
|
inline |
Tests if index is valid, i.e. more or equal to zero, and less than the number of elements in the array.
| Index | Index to test. |
|
inline |
Returns number of elements in array.
|
inline |
Array bracket operator. Returns reference to element at give index.
|
inline |
Checks if index is in array range.
| Index | Index to check. |