|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
for name[, name...] in pipeline [parallel n] { ... }.
More...
#include <cpp/a11/flow/syntax.h>
Public Member Functions | |
| const Word & | variable () const |
| The first name, which is the whole value where there is only one. | |
Public Member Functions inherited from a11::flow::syntax::NodeOf< NodeKind::kForEach > | |
| NodeOf () | |
Public Member Functions inherited from a11::flow::syntax::Node | |
| virtual | ~Node ()=default |
Public Attributes | |
| std::vector< Word > | variables |
| PipelinePtr | pipeline |
| int | parallel = 1 |
| std::vector< NodePtr > | body |
| std::vector< Word > | after |
| What has to have finished before the loop starts. | |
Public Attributes inherited from a11::flow::syntax::Node | |
| NodeKind | kind = NodeKind::kError |
| Location | location |
Additional Inherited Members | |
Static Public Attributes inherited from a11::flow::syntax::NodeOf< NodeKind::kForEach > | |
| static constexpr NodeKind | kNodeKind |
for name[, name...] in pipeline [parallel n] { ... }.
Several names unpack the value by position, as in for url, title in zip(urls, titles).
|
inline |
The first name, which is the whole value where there is only one.
| std::vector<Word> a11::flow::syntax::ForEach::after |
What has to have finished before the loop starts.
A loop is a step like any other, so it waits like one. It can also be waited for: bound to a name it reads as its own outcome, which is how a flow says "once the loop is over" about a node the loop was writing.
| std::vector<NodePtr> a11::flow::syntax::ForEach::body |
| int a11::flow::syntax::ForEach::parallel = 1 |
| PipelinePtr a11::flow::syntax::ForEach::pipeline |
| std::vector<Word> a11::flow::syntax::ForEach::variables |