FRigVMDynamicArray

The [FRigVMDynamicArray](API\Runtime\RigVM\RigVMCore\FRigVMDynamicArray) is used as an array wrapping a generic [TArray](API\Runtime\Core\Containers\TArray).

Windows
MacOS
Linux

References

Module

RigVM

Header

/Engine/Source/Runtime/RigVM/Public/RigVMCore/RigVMArray.h

Include

#include "RigVMCore/RigVMArray.h"

Syntax

template<class T>
struct FRigVMDynamicArray

Remarks

The FRigVMDynamicArray is used as an array wrapping a generic TArray. FRigVMDynamicArray is copied by reference.

Constructors

Name Description

Public function

FRigVMDynamicArray

(
    FRigVMByteArray& InStorage
)

Public function

FRigVMDynamicArray

(
    const FRigVMDynamicArray& InOther
)

Copy constructor

Functions

Name Description

Public function

int32

 

Add

(
    const T& InValue
)

Adds an element to the array

Public function

int32

 

Append

(
    const TArray< T >& InOther
)

Appends an array to this storage and returns the first index.

Public function

int32

 

Append

(
    const FRigVMDynamicArray& InOther
)

Appends an array to this storage and returns the first index.

Public function

RangedForIte...

 

begin()

Public function Const

RangedForCon...

 

begin()

Public function Const

bool

 

Contains

(
    const T& InItem
)

Public function

void

 

CopyFrom

(
    const TArray< T >& InOther
)

Copies the contents of one array to this one

Public function

void

 

CopyFrom

(
    const FRigVMDynamicArray< T >& InO...
)

Copies the contents of one array to this one

Public function Const

void

 

CopyTo

(
    TArray< T >& InOther
)

Copies the contents of one array to this one

Public function Const

void

 

CopyTo

(
    FRigVMDynamicArray< T >& InOther
)

Public function Const

RangedForCon...

 

end()

Public function

RangedForIte...

 

end()

Public function

void

 

EnsureMinimumSize

(
    int32 InSize
)

Sets the number of elements in this array

Public function Const

int32

 

Find

(
    const T& InItem
)

Public function Const

const T *...

 

GetData()

Public function

T *

 

GetData()

Public function Const

bool

 

IsValidIndex

(
    int32 InIndex
)

Returns true if a given Index is valid

Public function Const

int32

 

Num()

Returns the number of elements in this array

Public function

void

 

Reset()

Empties the contents of the array

Public function

void

 

SetNum

(
    int32 InSize
)

Sets the number of elements in this array

Public function

void

 

SetNumUninitialized

(
    int32 InSize
)

Sets the number of elements in this array

Public function

void

 

SetNumZeroed

(
    int32 InSize
)

Sets the number of elements in this array

Operators

Name Description

Public function Const

 

operator TArray< T >()

Public function Const

bool

 

operator!=

(
    const FRigVMDynamicArray& Other
)

Public function Const

const T &

 

operator[]

(
    int32 InIndex
)

Public function

T &

 

operator[]

(
    int32 InIndex
)

Public function

FRigVMDynami...

 

operator=

(
    const FRigVMDynamicArray& InOther
)

Assignment operator

Public function Const

bool

 

operator==

(
    const FRigVMDynamicArray& Other
)

Typedefs

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