Navigation
API > API/Runtime > API/Runtime/StateStream
TStateStreamStore is a threadsafe, reference stable storage. User can hold on to pointers of elements while other elements are added/removed. Store is backed by a Pow2ChunkedArray and use a "free list" to be able to reuse removed elements
| Name | TStateStreamStore |
| Type | class |
| Header File | /Engine/Source/Runtime/StateStream/Public/StateStreamStore.h |
| Include Path | #include "StateStreamStore.h" |
Syntax
template<typename T>
class TStateStreamStore
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TStateStreamStore() |
StateStreamStore.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TStateStreamStore() |
StateStreamStore.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Array | FPow2ChunkedArray< T > | StateStreamStore.h | ||
| FirstFreeIndex | uint32 | StateStreamStore.h | ||
| Lock | FRWLock | StateStreamStore.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 Add
(
const T& Value |
StateStreamStore.h | ||
void * AddUninitialized
(
uint32& OutIndex |
StateStreamStore.h | ||
uint32 Emplace
(
ArgsType&&... Args |
StateStreamStore.h | ||
uint32 GetUsedCount() |
StateStreamStore.h | ||
void Remove
(
uint32 Index |
StateStreamStore.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T & operator[]
(
uint32 Index |
StateStreamStore.h |