Navigation
API > API/Runtime > API/Runtime/StateStream
A chunk based array where each chunk is twice as large as the previous one. Adding and accessing elements are O(1) Add is threadsafe and keeping references is safe since it never reallocates
| Name | FPow2ChunkedArray |
| Type | class |
| Header File | /Engine/Source/Runtime/StateStream/Public/Pow2ChunkedArray.h |
| Include Path | #include "Pow2ChunkedArray.h" |
Syntax
template<typename T, uint32 MinSize, uint32 MaxSize>
class FPow2ChunkedArray
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPow2ChunkedArray() |
Pow2ChunkedArray.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPow2ChunkedArray() |
Pow2ChunkedArray.h |
Enums
Public
| Name | Remarks |
|---|---|
| FPow2ChunkedArray | |
| FPow2ChunkedArray |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Buckets | volatile int64 | Pow2ChunkedArray.h | ||
| Size | std::atomic< uint32 > | Pow2ChunkedArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T & Add
(
const T& Value |
Pow2ChunkedArray.h | ||
T & Add
(
T&& Value |
Pow2ChunkedArray.h | ||
T & Add
(
const T& Value, |
Pow2ChunkedArray.h | ||
void * AddUninitialized
(
uint32& OutIndex |
Pow2ChunkedArray.h | ||
uint32 GetBucketIndex
(
uint32 Index |
Pow2ChunkedArray.h | ||
uint32 GetBucketSize
(
uint32 BucketIndex |
Pow2ChunkedArray.h | ||
uint32 GetBucketStart
(
uint32 BucketIndex |
Pow2ChunkedArray.h | ||
const T & GetElementAt
(
uint32 Index |
Pow2ChunkedArray.h | ||
uint32 Num() |
Pow2ChunkedArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const T & operator[]
(
uint32 Index |
Pow2ChunkedArray.h | ||
T & operator[]
(
uint32 Index |
Pow2ChunkedArray.h |