Navigation
API > API/Plugins > API/Plugins/AnimNext > API/Plugins/AnimNext/EvaluationVM
References
| Module | AnimNext |
| Header | /Engine/Plugins/Experimental/AnimNext/Source/AnimNext/Public/EvaluationVM/EvaluationVM.h |
| Include | #include "EvaluationVM/EvaluationVM.h" |
Syntax
struct FEvaluationVM
Remarks
Evaluation VM
This struct holds the internal state when we execute and FEvaluationProgram. Our virtual machine is stack based, values are generally pushed and popped.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEvaluationVM
(
FEvaluationVM&& |
Allow move. | ||
FEvaluationVM
(
EEvaluationFlags InEvaluationFlags, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| EEvaluationFlags | GetFlags () |
Returns the evaluation flags. | |
| bool | IsValid () |
Returns true if we are fully initialized. | |
| FKeyframeState | MakeReferenceKeyframe
(
bool bAdditiveKeyframe |
Returns a reference keyframe (bind pose or additive identity) | |
| FKeyframeState | MakeUninitializedKeyframe
(
bool bAdditiveKeyframe |
Returns an uninitialized keyframe with memory pre-allocated. | |
| const ValueType * | PeekValue
(
const FEvaluationVMStackName& StackName, |
Returns an immutable pointer to a value at some offset from the top of the evaluation stack An offset of 0 means the top of the stack Returns valid pointer if an entry exists, nullptr otherwise | |
| ValueType * | PeekValueMutable
(
const FEvaluationVMStackName& StackName, |
Returns a mutable pointer to a value at some offset from the top of the evaluation stack An offset of 0 means the top of the stack Returns valid pointer if an entry exists, nullptr otherwise | |
| bool | PopValue
(
const FEvaluationVMStackName& StackName, |
Pops the top value from the evaluation stack Returns true if the stack was not empty and a value is returned, false otherwise | |
| void | PushValue
(
const FEvaluationVMStackName& StackName, |
Pushes and moves the specified value on its evaluation stack. | |
| void | Shrink () |
Trims internal containers to only use as much memory as required to avoid slack. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FEvaluationVM & | operator=
(
FEvaluationVM&& |