UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TPreallocatedArrayProxy< ElementType > Class Template Reference

#include <ParticleHelper.h>

Public Member Functions

 TPreallocatedArrayProxy ()
 
 TPreallocatedArrayProxy (uint8 *ArrayStart, int32 ArraySize)
 
ElementType & operator[] (int32 Index)
 
const ElementType & operator[] (int32 Index) const
 
int32 Find (const ElementType &Item) const
 
bool Contains (const ElementType &Item) const
 
int32 Num () const
 

Detailed Description

template<typename ElementType>
class TPreallocatedArrayProxy< ElementType >

Helper class that provides a basic interface for an inline and presized array within a contiguous memory block

Constructor & Destructor Documentation

◆ TPreallocatedArrayProxy() [1/2]

template<typename ElementType >
TPreallocatedArrayProxy< ElementType >::TPreallocatedArrayProxy ( )
inline

Constructor, just zeros everything

◆ TPreallocatedArrayProxy() [2/2]

template<typename ElementType >
TPreallocatedArrayProxy< ElementType >::TPreallocatedArrayProxy ( uint8 ArrayStart,
int32  ArraySize 
)
inline

Constructor, just sets up the array pointer and size

Parameters
ArrayStartThe array pointer
ArraySizeThe maximum number of elements that the array

Member Function Documentation

◆ Contains()

template<typename ElementType >
bool TPreallocatedArrayProxy< ElementType >::Contains ( const ElementType &  Item) const
inline

Checks if the array contains an element with the given value.

Parameters
Item- The item to check for.
Returns
true if the array contains an element with the given value.

◆ Find()

template<typename ElementType >
int32 TPreallocatedArrayProxy< ElementType >::Find ( const ElementType &  Item) const
inline

Finds an element with the given value in the array.

Parameters
Item- The value to search for.
Returns
The index of an element to the given value. If no element in the array has the given value, this will return INDEX_NONE.

◆ Num()

template<typename ElementType >
int32 TPreallocatedArrayProxy< ElementType >::Num ( ) const
inline

◆ operator[]() [1/2]

template<typename ElementType >
ElementType & TPreallocatedArrayProxy< ElementType >::operator[] ( int32  Index)
inline

Accesses the identified element's value.

◆ operator[]() [2/2]

template<typename ElementType >
const ElementType & TPreallocatedArrayProxy< ElementType >::operator[] ( int32  Index) const
inline

Accesses the identified element's value.


The documentation for this class was generated from the following file: