TScriptSparseArray

Untyped sparse array type for accessing [TSparseArray](API\Runtime\Core\Containers\TSparseArray) data, like [FScriptArray](API\Runtime\Core\Containers\FScriptArray) for [TArray](API\Runtime\Core\Containers\TArray).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TScriptSparseArray

FScriptSparseArray

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/SparseArray.h

Include

#include "Containers/SparseArray.h"

Syntax

template<typename AllocatorType, typename InDerivedType>
class TScriptSparseArray

Remarks

Untyped sparse array type for accessing TSparseArray data, like FScriptArray for TArray. Must have the same memory representation as a TSet.

Constructors

Name Description

Public function

TScriptSparseArray()

Public function

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.

Functions

Name Description

Public function

int32

 

AddUninitialized

(
    const FScriptSparseArrayLayout& La...
)

Adds an uninitialized object to the array.

Public function

void

 

Empty

(
    int32 Slack,
    const FScriptSparseArrayLayout& La...
)

Public function

void *

 

GetData

(
    int32 Index,
    const FScriptSparseArrayLayout& La...
)

Public function Const

const void &...

 

GetData

(
    int32 Index,
    const FScriptSparseArrayLayout& La...
)

Public function Const

int32

 

GetMaxIndex()

Public function Static

FScriptSpars...

 

GetScriptLayout

(
    int32 ElementSize,
    int32 ElementAlignment
)

Public function Const

bool

 

IsEmpty()

Public function Const

bool

 

IsValidIndex

(
    int32 Index
)

Public function

void

 

MoveAssign

(
    DerivedType& Other,
    const FScriptSparseArrayLayout& La...
)

Public function Const

int32

 

Num()

Public function

void

 

RemoveAtUninitialized

(
    const FScriptSparseArrayLayout& La...,
    int32 Index,
    int32 Count
)

Removes Count elements from the array, starting from Index, without destructing them.

Operators

Name Description

Public function

void

 

operator=

(
    const TScriptSparseArray&
)

Typedefs

Name

Description

DerivedType