Simple array type that can be expanded without invalidating existing entries.
更多...
#include <UObjectArray.h>
|
| 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 更多...
|
| |
|
| FChunkedFixedUObjectArray () TSAN_SAFE |
| | Constructor : Probably not thread safe
|
| |
| FORCEINLINE_DEBUGGABLE FUObjectItem const * | GetObjectPtr (int32 Index) const TSAN_SAFE |
| | Return a pointer to the pointer to a given element 更多...
|
| |
|
FUObjectItem *** | 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 |
| | 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, bool bPreAllocateChunks) TSAN_SAFE |
| | Expands the array so that Element[Index] is allocated. 更多...
|
| |
Simple array type that can be expanded without invalidating existing entries.
This is critical to thread safe FNames.
- 参数
-
| ElementType | Type of the pointer we are storing in the array |
| MaxTotalElements | absolute maximum number of elements this array can ever hold |
| ElementsPerChunk | how many elements to allocate in a chunk |
◆ Capacity()
| FORCEINLINE int32 FChunkedFixedUObjectArray::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
◆ GetObjectPtr()
| FORCEINLINE_DEBUGGABLE FUObjectItem const * FChunkedFixedUObjectArray::GetObjectPtr |
( |
int32 |
Index | ) |
const |
|
inline |
Return a pointer to the pointer to a given element
- 参数
-
| Index | The Index of an element we want to retrieve the pointer-to-pointer for |
◆ IsValidIndex()
| FORCEINLINE bool FChunkedFixedUObjectArray::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.
- 参数
-
- 返回
- true, if this is a valid
◆ Num()
| FORCEINLINE int32 FChunkedFixedUObjectArray::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 & FChunkedFixedUObjectArray::operator[] |
( |
int32 |
Index | ) |
const |
|
inline |
Return a reference to an element
- 参数
-
- 返回
- 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 FChunkedFixedUObjectArray::PreAllocate |
( |
int32 |
InMaxElements, |
|
|
bool |
bPreAllocateChunks |
|
) |
| |
|
inline |
Expands the array so that Element[Index] is allocated.
New pointers are all zero.
- 参数
-
| Index | The Index of an element we want to be sure is allocated |
该类的文档由以下文件生成: