FScriptSparseArray

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).

Windows
MacOS
Linux

Syntax

class FScriptSparseArray

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

FScriptSparseArray()

Public function

FScriptSparseArray

(
    const FScriptSparseArray&
)

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

 

IsValidIndex

(
    int32 Index
)

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 FScriptSparseArray&
)

References

Module

Core

Header

Runtime/Core/Public/Containers/SparseArray.h

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