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

for name[, name...] in pipeline [parallel n] { ... }. More...

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

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

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
 

Detailed Description

for name[, name...] in pipeline [parallel n] { ... }.

Several names unpack the value by position, as in for url, title in zip(urls, titles).

Member Function Documentation

◆ variable()

const Word & a11::flow::syntax::ForEach::variable ( ) const
inline

The first name, which is the whole value where there is only one.

Member Data Documentation

◆ after

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.

◆ body

std::vector<NodePtr> a11::flow::syntax::ForEach::body

◆ parallel

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

◆ pipeline

PipelinePtr a11::flow::syntax::ForEach::pipeline

◆ variables

std::vector<Word> a11::flow::syntax::ForEach::variables

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