A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::syntax::Stage Struct Reference

One | name arg stage of a pipeline. More...

#include <cpp/a11/flow/syntax.h>

Inheritance diagram for a11::flow::syntax::Stage:
[legend]

Public Attributes

std::string name
 
vocabulary::StageArgument takes = vocabulary::StageArgument::kNone
 
std::optional< TypeExpression > type
 
double number = 0.0
 kNumber: a constant count, when the argument folds to an integer.
 
long long integer = 0
 
bool is_integer = false
 
std::string text
 kString/kOptionalString: the text, with escapes resolved.
 
NodePtr argument
 kExpression/kOptionalExpression: the expression, with it bound.
 
absl::Duration duration
 kDuration: how long timeout waits, or pace spaces values out by.
 
bool descending = false
 kSortKey: whether desc was written.
 
Constant start
 kFold: the initial literal and carried name.
 
Word carried
 
bool tolerant = false
 try map ...: tolerate an item's evaluation failure; context may retain the item.
 
NodePtr failures
 failures into ref: where a tolerated failure goes.
 
int parallel = 1
 parallel n: maximum concurrent values; one is the default.
 
NodePtr parallel_expression
 A nonliteral concurrency count, evaluated once when the stage starts.
 
NodePtr context_before
 context: surrounding item counts, evaluated once outside it.
 
NodePtr context_after
 
bool context_numbered = false
 
NodePtr context_base
 
bool ordered = true
 Whether output preserves input order; unordered clears this flag.
 
LogTail log
 kLog/kLogFormat: what was written after the stage name.
 
- Public Attributes inherited from a11::flow::syntax::Node
NodeKind kind = NodeKind::kError
 
Location location
 
Location extent
 Full source extent and transparent grouping, for native edits.
 
std::vector< Location > groups
 

Additional Inherited Members

- Public Member Functions inherited from a11::flow::syntax::NodeOf< NodeKind::kStage >
 NodeOf ()
 
- Public Member Functions inherited from a11::flow::syntax::Node
virtual ~Node ()=default
 
- Static Public Attributes inherited from a11::flow::syntax::NodeOf< NodeKind::kStage >
static constexpr NodeKind kNodeKind
 

Detailed Description

One | name arg stage of a pipeline.

takes identifies its argument shape in the vocabulary table.

Member Data Documentation

◆ argument

NodePtr a11::flow::syntax::Stage::argument

kExpression/kOptionalExpression: the expression, with it bound.

kSortKey: the by key, or null for the values themselves. kFold: the fold expression, with the carried name and it bound. kStream: the stream to read next. kNumber/kDuration: a scalar stage configuration, evaluated once per activation without it.

◆ carried

Word a11::flow::syntax::Stage::carried

◆ context_after

NodePtr a11::flow::syntax::Stage::context_after

◆ context_base

NodePtr a11::flow::syntax::Stage::context_base

◆ context_before

NodePtr a11::flow::syntax::Stage::context_before

context: surrounding item counts, evaluated once outside it.

◆ context_numbered

bool a11::flow::syntax::Stage::context_numbered = false

◆ descending

bool a11::flow::syntax::Stage::descending = false

kSortKey: whether desc was written.

◆ duration

absl::Duration a11::flow::syntax::Stage::duration

kDuration: how long timeout waits, or pace spaces values out by.

◆ failures

NodePtr a11::flow::syntax::Stage::failures

failures into ref: where a tolerated failure goes.

Null when the failures are only logged.

◆ integer

long long a11::flow::syntax::Stage::integer = 0

◆ is_integer

bool a11::flow::syntax::Stage::is_integer = false

◆ log

LogTail a11::flow::syntax::Stage::log

kLog/kLogFormat: what was written after the stage name.

The same shape the statement of the same name carries.

◆ name

std::string a11::flow::syntax::Stage::name

◆ number

double a11::flow::syntax::Stage::number = 0.0

kNumber: a constant count, when the argument folds to an integer.

◆ ordered

bool a11::flow::syntax::Stage::ordered = true

Whether output preserves input order; unordered clears this flag.

◆ parallel

int a11::flow::syntax::Stage::parallel = 1

parallel n: maximum concurrent values; one is the default.

◆ parallel_expression

NodePtr a11::flow::syntax::Stage::parallel_expression

A nonliteral concurrency count, evaluated once when the stage starts.

◆ start

Constant a11::flow::syntax::Stage::start

kFold: the initial literal and carried name.

◆ takes

◆ text

std::string a11::flow::syntax::Stage::text

kString/kOptionalString: the text, with escapes resolved.

◆ tolerant

bool a11::flow::syntax::Stage::tolerant = false

try map ...: tolerate an item's evaluation failure; context may retain the item.

Written before the stage name, as try run is before a call.

◆ type

std::optional<TypeExpression> a11::flow::syntax::Stage::type

The documentation for this struct was generated from the following file: