FChunkedFixedUObjectArray

Simple array type that can be expanded without invalidating existing entries.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectArray.h

Include

#include "UObject/UObjectArray.h"

Syntax

class FChunkedFixedUObjectArray

Remarks

Simple array type that can be expanded without invalidating existing entries. This is critical to thread safe FNames.

Constructors

Name Description

Public function

FChunkedFixedUObjectArray()

Constructor : Probably not thread safe

Destructors

Name Description

Public function

~FChunkedFixedUObjectArray()

Functions

Name Description

Public function

int32

 

AddRange

(
    int32 NumToAdd
)

Public function

int32

 

AddSingle()

Public function Const

int32

 

Capacity()

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

Public function Const

int64

 

GetAllocatedSize()

Public function Const

FUObjectItem...

 

GetObjectPtr

(
    int32 Index
)

Return a pointer to the pointer to a given element

Public function

FUObjectItem...

 

GetObjectPtr

(
    int32 Index
)

Public function

FUObjectItem...

 

GetRootBlockForDebuggerVisualizers()

Return a naked pointer to the fundamental data structure for debug visualizers.

Public function Const

bool

 

IsValidIndex

(
    int32 Index
)

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

Public function Const

int32

 

Num()

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

Public function

void

 

PreAllocate

(
    int32 InMaxElements,
    bool bPreAllocateChunks
)

Expands the array so that Element[Index] is allocated. New pointers are all zero.

Operators

Name Description

Public function Const

FUObjectItem...

 

operator[]

(
    int32 Index
)

Return a reference to an element

Public function

FUObjectItem...

 

operator[]

(
    int32 Index
)

Constants

Name

Description

NumElementsPerChunk

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss