Navigation
API > API/Runtime > API/Runtime/DataflowCore
Asynchronously evaluate a dataflow nodes This may be slower than executing the graph in one go synchronously but this offers the following advantage:
- this can be cancelled at anytime ( only the in progress node will have finish evaluating while all the pending ones will be discarded )
- nodes that need to run on the game thread will do so ( see FDataflowNode EvaluateOnGameThreadOnly method )
| Name | FContextEvaluator |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Dataflow/Core/Public/Dataflow/DataflowContextEvaluator.h |
| Include Path | #include "Dataflow/DataflowContextEvaluator.h" |
Syntax
struct FContextEvaluator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FContextEvaluator
(
FContext& InOwningContext |
Dataflow/DataflowContextEvaluator.h |
Structs
| Name | Remarks |
|---|---|
| FEvaluationEntry |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FNodeId | FGuid | Dataflow/DataflowContextEvaluator.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CompletedTasks | TSet< FNodeId > | Dataflow/DataflowContextEvaluator.h | ||
| OwningContext | FContext & | Dataflow/DataflowContextEvaluator.h | ||
| PendingEvaluationEntries | TMap< FNodeId, FEvaluationEntry > | Dataflow/DataflowContextEvaluator.h | ||
| RunningTasks | TMap< FNodeId, FGraphEventRef > | Dataflow/DataflowContextEvaluator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Cancel() |
Dataflow/DataflowContextEvaluator.h | ||
int32 GetNumCompletedTasks() |
Dataflow/DataflowContextEvaluator.h | ||
int32 GetNumPendingTasks() |
Dataflow/DataflowContextEvaluator.h | ||
int32 GetNumRunningTasks() |
Dataflow/DataflowContextEvaluator.h | ||
void GetStats
(
int32& OutNumPendingTasks, |
Dataflow/DataflowContextEvaluator.h | ||
void Process() |
Dataflow/DataflowContextEvaluator.h | ||
void ScheduleNodeEvaluation
(
const FDataflowNode& Node, |
Dataflow/DataflowContextEvaluator.h | ||
void ScheduleOutputEvaluation
(
const FDataflowOutput& Output, |
Dataflow/DataflowContextEvaluator.h |