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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback