FRigVMInstructionArray

The [FRigVMInstructionArray](API\Runtime\RigVM\RigVMCore\FRigVMInstructionArray) represents all current instructions within a RigVM and can be used to iterate over all operators and retrieve each instruction's data.

Choose your operating system:

Windows

macOS

Linux

References

Module

RigVM

Header

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

Include

#include "RigVMCore/RigVMByteCode.h"

Syntax

struct FRigVMInstructionArray

Remarks

The FRigVMInstructionArray represents all current instructions within a RigVM and can be used to iterate over all operators and retrieve each instruction's data.

Constructors

Name Description

Public function

FRigVMInstructionArray()

Functions

Name Description

Public function Const

TArray< FRig...

 

begin()

Public function

void

 

Empty()

Resets the data structure and removes all storage.

Public function Const

TArray< FRig...

 

end()

Public function Const

bool

 

IsValidIndex

(
    int32 InIndex
)

Returns true if a given instruction index is valid.

Public function Const

int32

 

Num()

Returns the number of instructions.

Public function

void

 

Reset()

Resets the data structure and maintains all storage.

Operators

Name Description

Public function Const

const FRigVM...

 

operator[]

(
    int32 InIndex
)

Const accessor for an instruction given its index