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

One field of a struct, resolved. More...

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

Public Attributes

std::string name
 
std::string declared
 
std::string type
 
std::string element
 The element type of a list[T], resolved, or empty where it is not a list.
 
std::string dto_name
 Whether the field, or a list's element, names a declared shape.
 
std::string element_dto_name
 
bool required = false
 
bool unique = false
 
syntax::FieldRange range
 
std::string pattern
 
bool has_pattern = false
 
std::vector< syntax::Constant > enumeration
 
bool has_enumeration = false
 
syntax::Constant default_value
 
bool has_default = false
 
std::string description
 
syntax::Location location
 

Detailed Description

One field of a struct, resolved.

The syntax node's constraints, with the type worked out the way a port's is: declared is what was written and type is what it is. A field naming another struct keeps that name in both, and dto_name says so, which is what saves every reader from deciding whether a bare name is a shape again.

Member Data Documentation

◆ declared

std::string a11::flow::FieldPlan::declared

◆ default_value

syntax::Constant a11::flow::FieldPlan::default_value

◆ description

std::string a11::flow::FieldPlan::description

◆ dto_name

std::string a11::flow::FieldPlan::dto_name

Whether the field, or a list's element, names a declared shape.

◆ element

std::string a11::flow::FieldPlan::element

The element type of a list[T], resolved, or empty where it is not a list.

◆ element_dto_name

std::string a11::flow::FieldPlan::element_dto_name

◆ enumeration

std::vector<syntax::Constant> a11::flow::FieldPlan::enumeration

◆ has_default

bool a11::flow::FieldPlan::has_default = false

◆ has_enumeration

bool a11::flow::FieldPlan::has_enumeration = false

◆ has_pattern

bool a11::flow::FieldPlan::has_pattern = false

◆ location

syntax::Location a11::flow::FieldPlan::location

◆ name

std::string a11::flow::FieldPlan::name

◆ pattern

std::string a11::flow::FieldPlan::pattern

◆ range

syntax::FieldRange a11::flow::FieldPlan::range

◆ required

bool a11::flow::FieldPlan::required = false

◆ type

std::string a11::flow::FieldPlan::type

◆ unique

bool a11::flow::FieldPlan::unique = false

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