engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TPreallocatedArrayProxy< ElementType > 模板类 参考

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

#include <ParticleHelper.h>

Public 成员函数

bool Contains (const ElementType &Item) const
 Checks if the array contains an element with the given value. 更多...
 
int32 Find (const ElementType &Item) const
 Finds an element with the given value in the array. 更多...
 
FORCEINLINE ElementType & operator[] (int32 Index)
 Accesses the identified element's value.
 
FORCEINLINE const ElementType & operator[] (int32 Index) const
 Accesses the identified element's value.
 
 TPreallocatedArrayProxy ()
 Constructor, just zeros everything

 
 TPreallocatedArrayProxy (uint8 *ArrayStart, int32 ArraySize)
 Constructor, just sets up the array pointer and size 更多...
 

详细描述

template<typename ElementType>
class TPreallocatedArrayProxy< ElementType >

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

构造及析构函数说明

◆ TPreallocatedArrayProxy()

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

Constructor, just sets up the array pointer and size

参数
ArrayStartThe array pointer
ArraySizeThe maximum number of elements that the array

成员函数说明

◆ Contains()

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

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

参数
Item- The item to check for.
返回
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.

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

该类的文档由以下文件生成: