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

Every flow and shape one source file declares. More...

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

Public Member Functions

const FlowPlan *absl_nullable Flow (std::string_view name) const
 The flow of this name, or nullptr.
 
const FlowPlan *absl_nullable Entry () const
 The file's entry point, or nullptr when it declares none.
 
const DtoPlan *absl_nullable Dto (std::string_view name) const
 The shape of this name, or nullptr.
 

Public Attributes

std::string source_name
 
std::vector< FlowPlan > flows
 
std::vector< DtoPlan > dtos
 The shapes, in declaration order.
 

Detailed Description

Every flow and shape one source file declares.

Member Function Documentation

◆ Dto()

const DtoPlan *absl_nullable a11::flow::Program::Dto ( std::string_view  name) const

The shape of this name, or nullptr.

◆ Entry()

const FlowPlan *absl_nullable a11::flow::Program::Entry ( ) const

The file's entry point, or nullptr when it declares none.

◆ Flow()

const FlowPlan *absl_nullable a11::flow::Program::Flow ( std::string_view  name) const

The flow of this name, or nullptr.

Never returns the entry flow: an empty name matches nothing, so a run/call cannot reach it.

Member Data Documentation

◆ dtos

std::vector<DtoPlan> a11::flow::Program::dtos

The shapes, in declaration order.

Beside the flows because a shape is not any one flow's: two flows in a file describe the same records. A name here outranks a serialisation registry tag of the same name, so the local declaration defines the shape.

◆ flows

std::vector<FlowPlan> a11::flow::Program::flows

◆ source_name

std::string a11::flow::Program::source_name

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