Navigation
API > API/Runtime > API/Runtime/Engine
Helper class that provides a basic interface for an inline and presized array within a contiguous memory block
| Name | TPreallocatedArrayProxy |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/ParticleHelper.h |
| Include Path | #include "ParticleHelper.h" |
Syntax
template<typename ElementType>
class TPreallocatedArrayProxy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Constructor, just zeros everything | ParticleHelper.h | ||
TPreallocatedArrayProxy
(
uint8* ArrayStart, |
Constructor, just sets up the array pointer and size | ParticleHelper.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Array | ElementType * | Pointer to an array, stored within a contiguous memory block. | ParticleHelper.h | |
| ArrayMax | int32 | The maximum number of elements in the array. This is cannot dynamically change. | ParticleHelper.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Contains
(
const ElementType& Item |
Checks if the array contains an element with the given value. | ParticleHelper.h | |
int32 Find
(
const ElementType& Item |
Finds an element with the given value in the array. | ParticleHelper.h | |
int32 Num() |
ParticleHelper.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ElementType & operator[]
(
int32 Index |
Accesses the identified element's value. | ParticleHelper.h | |
const ElementType & operator[]
(
int32 Index |
Accesses the identified element's value. | ParticleHelper.h |