TManagedArrayBase

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GeometryCollectionCore

Header

/Engine/Source/Runtime/Experimental/GeometryCollectionCore/Public/GeometryCollection/ManagedArray.h

Include

#include "GeometryCollection/ManagedArray.h"

Syntax

template<class InElementType>
class TManagedArrayBase : public FManagedArrayBase

Constructors

Name Description

Public function

TManagedArrayBase()

Constructor (default) Build an empty shared array

Public function

TManagedArrayBase

(
    const TArray< ElementType >& Other
)

Constructor (TArray)

Public function

TManagedArrayBase

(
    const TManagedArrayBase< ElementTyp...
)

Copy Constructor (default)

Public function

TManagedArrayBase

(
    TManagedArrayBase< ElementType >&&...
)

Move Constructor

Public function

TManagedArrayBase

(
    TArray< ElementType >&& Other
)

Constructor (default) Build an empty shared array

Destructors

Name Description

Public function Virtual

~TManagedArrayBase()

Virtual Destructor

Functions

Name Description

Public function Const

bool

 

Contains

(
    const ElementType& Item
)

Public function Const

int32

 

Count

(
    const ElementType& Item
)

Count the number of entries match `Item_.

Public function

void

 

Fill

(
    const ElementType& Value
)

Fill the array with `Value_.

Public function Const

int32

 

Find

(
    const ElementType& Item
)

Find first index of the element

Public function Const

const Elemen...

 

GetData()

Helper function for returning a typed pointer to the first array entry.

Public function

ElementType ...

 

GetData()

Helper function for returning a typed pointer to the first array entry.

Public function Const

void

 

RangeCheck

(
    int32 Index
)

Checks if index is in array range.

Overridden from FManagedArrayBase

Name Description

Public function Virtual

void

 

ExchangeArrays

(
    FManagedArrayBase& Src
)

Perform a memory move between the two arrays

Public function Virtual Const

size_t

 

GetTypeSize()

Helper function returning the size of the inner type.

Public function Virtual

void

 

Init

(
    const FManagedArrayBase& NewArray
)

Init from a predefined Array of matching type

Public function Virtual Const

int32

 

Max()

The reserved length of the array.

Public function Virtual Const

int32

 

Num()

Returning the size of the array

Public function Virtual

void

 

RemoveElements

(
    const TArray< int32 >& SortedDelet...
)

Remove elements

Public function Virtual

void

 

Serialize

(
    Chaos::FChaosArchive& Ar
)

Serialization Support

Operators

Name Description

Public function Const

const Elemen...

 

operator[]

(
    int Index
)

Public function

ElementType ...

 

operator[]

(
    int Index
)

Returning a reference to the element at index.

Public function

TManagedArra...

 

operator=

(
    TManagedArrayBase< ElementType >&&...
)

Assignment operator

Typedefs

Name

Description

ElementType

RangedForConstIteratorType

RangedForIteratorType

TARRAY_RANGED_FOR_CHECKS Is defined in Array.h based on build state.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss