The FRigVMMemoryContainer provides a heterogeneous memory container to store arbitrary data. 更多...
#include <RigVMMemory.h>
友元 | |
| class | URigVM |
The FRigVMMemoryContainer provides a heterogeneous memory container to store arbitrary data.
Each element stored can be referred to using a FRigVMRegister. Elements can be accessed by index (index of the register), FRigVMOperand or by name. Name access is optional and is specified upon construction of the container. The memory container provides a series of templated functions to add and get data.
For example: int32 Index = Container.Add<float>(4.f); float& ValueRef = Container.GetRef<float>(Index);
This can also be done with arrays: TArray<float> MyArray = {3.f, 4.f, 5.f}; int32 Index = Container.AddFixedArray<float>(MyArray); FRigVMFixedArray<float> ArrayView = Container.GetFixedArray<float>(Index);