engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FFixedUObjectArray类 参考

Fixed size UObject array. 更多...

#include <UObjectArray.h>

Public 成员函数

FORCEINLINE int32 Capacity () const TSAN_SAFE
 Return the number max capacity of the array Thread safe, but you know, someone might have added more elements before this even returns 更多...
 
UObjectBase *** GetRootBlockForDebuggerVisualizers ()
 Return a naked pointer to the fundamental data structure for debug visualizers.
 
FORCEINLINE bool IsValidIndex (int32 Index) const
 Return if this index is valid Thread safe, if it is valid now, it is valid forever. 更多...
 
FORCEINLINE int32 Num () const TSAN_SAFE
 Return the number of elements in the array Thread safe, but you know, someone might have added more elements before this even returns 更多...
 
FORCEINLINE FUObjectItem const & operator[] (int32 Index) const
 Return a reference to an element 更多...
 
void PreAllocate (int32 InMaxElements) TSAN_SAFE
 Expands the array so that Element[Index] is allocated. 更多...
 

详细描述

Fixed size UObject array.

成员函数说明

◆ Capacity()

FORCEINLINE int32 FFixedUObjectArray::Capacity ( ) const
inline

Return the number max capacity of the array Thread safe, but you know, someone might have added more elements before this even returns

返回
the maximum number of elements in the array

◆ IsValidIndex()

FORCEINLINE bool FFixedUObjectArray::IsValidIndex ( int32  Index) const
inline

Return if this index is valid Thread safe, if it is valid now, it is valid forever.

Other threads might be adding during this call.

参数
IndexIndex to test
返回
true, if this is a valid

◆ Num()

FORCEINLINE int32 FFixedUObjectArray::Num ( ) const
inline

Return the number of elements in the array Thread safe, but you know, someone might have added more elements before this even returns

返回
the number of elements in the array

◆ operator[]()

FORCEINLINE FUObjectItem const & FFixedUObjectArray::operator[] ( int32  Index) const
inline

Return a reference to an element

参数
IndexIndex to return
返回
a reference to the pointer to the element Thread safe, if it is valid now, it is valid forever. This might return nullptr, but by then, some other thread might have made it non-nullptr.

◆ PreAllocate()

void FFixedUObjectArray::PreAllocate ( int32  InMaxElements)
inline

Expands the array so that Element[Index] is allocated.

New pointers are all zero.

参数
IndexThe Index of an element we want to be sure is allocated

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