Navigation
API > API/Plugins > API/Plugins/AnimNextAnimGraph
Evaluation Program
This struct holds a sequence of evaluation tasks that form a program within our evaluation virtual machine framework. Programs are immutable once written.
| Name | FEvaluationProgram |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/AnimNextAnimGraph/Source/AnimNextAnimGraph/Public/EvaluationVM/EvaluationProgram.h |
| Include Path | #include "EvaluationVM/EvaluationProgram.h" |
Syntax
struct FEvaluationProgram
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| EvaluationVM/EvaluationProgram.h | |||
| Allow moving. | EvaluationVM/EvaluationProgram.h | ||
FEvaluationProgram
(
const FEvaluationProgram& |
Disallow copy. | EvaluationVM/EvaluationProgram.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Tasks | TArray< TSharedPtr< FAnimNextEvaluationTask > > | List of tasks. | EvaluationVM/EvaluationProgram.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AppendTask
(
TaskType&& Task |
Appends a new task into the program, tasks mutate state in the order they have been appended in This means that child nodes need to evaluate first, tasks will usually be appended in IEvaluate::PostEvaluateTasks are moved into their final memory location, caller can allocate the task anywhere, it is no longer needed after this operation | EvaluationVM/EvaluationProgram.h | |
void AppendTaskPtr
(
const TSharedPtr< TaskType >& TaskPtr |
Same as above, but uses TaskType copy constructor to move the task into the program. | EvaluationVM/EvaluationProgram.h | |
void Execute
(
FEvaluationVM& VM |
Executes the current program on the provided virtual machine. | EvaluationVM/EvaluationProgram.h | |
bool IsEmpty() |
Returns whether or not this program is empty. | EvaluationVM/EvaluationProgram.h | |
FString ToString() |
Returns the program as a string suitable for debug purposes. | EvaluationVM/EvaluationProgram.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| EvaluationVM/EvaluationProgram.h | |||
FEvaluationProgram & operator=
(
const FEvaluationProgram& |
EvaluationVM/EvaluationProgram.h |