Navigation
API > API/Runtime > API/Runtime/Core
Untyped sparse array type for accessing TSparseArray data, like FScriptArray for TArray. Must have the same memory representation as a TSet.
| Name | TScriptSparseArray |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/SparseArray.h |
| Include Path | #include "Containers/SparseArray.h" |
Syntax
template<typename AllocatorType, typename InDerivedType>
class TScriptSparseArray
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Containers/SparseArray.h | |||
| Containers/SparseArray.h | |||
TScriptSparseArray
(
const TScriptSparseArray& |
These should really be private, because they shouldn't be called, but there's a bunch of code that needs to be fixed first. | Containers/SparseArray.h |
Structs
| Name | Remarks |
|---|---|
| FFreeListLink |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DerivedType | std::conditional_t< std::is_void_v< InDerivedType >, TScriptSparseArray, InDerivedType > | Containers/SparseArray.h | |
| IntrusiveUnsetOptionalStateType | TScriptSparseArray | Containers/SparseArray.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bHasIntrusiveUnsetOptionalState | bool | Start - intrusive TOptional |
Containers/SparseArray.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllocationFlags | TScriptBitArray< typename AllocatorType::BitArrayAllocator > | Containers/SparseArray.h | ||
| Data | TScriptArray< typename AllocatorType::ElementAllocator > | Containers/SparseArray.h | ||
| FirstFreeIndex | int32 | Containers/SparseArray.h | ||
| NumFreeIndices | int32 | Containers/SparseArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddUninitialized
(
const FScriptSparseArrayLayout& Layout |
Adds an uninitialized object to the array. | Containers/SparseArray.h | |
void Empty
(
int32 Slack, |
Containers/SparseArray.h | ||
const void * GetData
(
int32 Index, |
Containers/SparseArray.h | ||
void * GetData
(
int32 Index, |
Containers/SparseArray.h | ||
int32 GetMaxIndex() |
Containers/SparseArray.h | ||
bool IsAllocated
(
int32 Index |
Containers/SparseArray.h | ||
bool IsCompact() |
Containers/SparseArray.h | ||
bool IsEmpty() |
Containers/SparseArray.h | ||
bool IsValidIndex
(
int32 Index |
End - intrusive TOptional |
Containers/SparseArray.h | |
void MoveAssign
(
DerivedType& Other, |
Containers/SparseArray.h | ||
int32 Num() |
Containers/SparseArray.h | ||
int32 NumUnchecked() |
Containers/SparseArray.h | ||
void RemoveAtUninitialized
(
const FScriptSparseArrayLayout& Layout, |
Removes Count elements from the array, starting from Index, without destructing them. | Containers/SparseArray.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void CheckConstraints() |
This function isn't intended to be called, just to be compiled to validate the correctness of the type. | Containers/SparseArray.h | |
static FScriptSparseArrayLayout GetScriptLayout
(
int32 ElementSize, |
Containers/SparseArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void operator=
(
const TScriptSparseArray& |
Containers/SparseArray.h | ||
bool operator==
(
FIntrusiveUnsetOptionalState Tag |
Containers/SparseArray.h |