|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
Appends to a [FlowGraph] while the resolver walks a flow. More...
#include <cpp/a11/flow/graph.h>
Public Member Functions | |
| GraphBuilder (FlowGraph &flow) | |
| FlowGraph & | flow () |
| BodyId | AddBody (std::string label, BodyId parent=kNone, StepId owner_step=kNone) |
| bool | Carries (RefId ref) const |
| Whether the ref already in the graph carries at most one value. | |
| RefId | AddRef (Ref ref) |
| Appends a ref and derives cardinality from its kind and sources. | |
| StepId | AddStep (Step step) |
| Append a step, and record it in the body it belongs to. | |
| ExprId | AddExpr (Expr expr) |
| Ref & | ref (RefId id) |
| Step & | step (StepId id) |
| Expr & | expr (ExprId id) |
Static Public Member Functions | |
| static bool | StageMakesOne (const Stage &stage) |
Whether a stage reduces its input to one value, including first 1. | |
| static bool | StagePreservesCount (const Stage &stage) |
| Whether a stage produces at most one output per input value. | |
Appends to a [FlowGraph] while the resolver walks a flow.
Keeps step allocation and insertion into the owning body in one operation. The resolver omits this builder on editor-only paths that do not need an executable graph.
|
inlineexplicit |
|
inline |
Appends a ref and derives cardinality from its kind and sources.
Declared ports retain their supplied cardinality.
Append a step, and record it in the body it belongs to.
|
inline |
Whether the ref already in the graph carries at most one value.
|
inline |
|
inlinestatic |
Whether a stage reduces its input to one value, including first 1.
|
inlinestatic |
Whether a stage produces at most one output per input value.
Unknown stages default to false.