A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
contract.h File Reference
#include <string>
#include <string_view>
#include <absl/status/status.h>
#include <absl/status/statusor.h>
#include <absl/types/span.h>
#include "a11/flow/limits.h"
#include "a11/flow/plan.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  a11::flow::PipelinePorts
 The unique unsupplied input and unique output of a whole-stream invocation. More...
 

Namespaces

namespace  a11
 
namespace  a11::flow
 

Enumerations

enum class  a11::flow::Refinement { a11::flow::kYes , a11::flow::kNo , a11::flow::kUnknown }
 Whether available metadata proves payload refinement. More...
 

Functions

absl::StatusOr< PipelinePorts > a11::flow::SelectPipelinePorts (const FlowPlan &flow, absl::Span< const std::string > supplied)
 
absl::StatusOr< const PortPlan * > a11::flow::SelectPipelineStarterOutput (const FlowPlan &flow, absl::Span< const std::string > supplied)
 The unique output of a call with every input supplied explicitly.
 
std::vector< std::string_view > a11::flow::FieldTypeNames (const FieldPlan &field)
 Every type named by a field, including nested container parameters.
 
void a11::flow::MarkBinaryTypes (std::vector< DtoPlan > &types, CompilationBudget *absl_nullable budget=nullptr)
 Propagate byte payloads through the shape dependency graph.
 
std::string a11::flow::CanonicalPayloadType (std::string_view type)
 Canonical payload spelling for alias and generic equality.
 
Refinement a11::flow::RefinesType (std::string_view actual, std::string_view expected, const Program &program)
 Compare payload types using native aliases and document shapes.
 
absl::Status a11::flow::MergeContract (FlowPlan &effective, const FlowPlan &contribution, const Program &program)
 Conjoin compatible interfaces without changing executable identity.
 
absl::Status a11::flow::CheckImplementation (const FlowPlan &actual, const FlowPlan &declared, const Program &program)
 Validate the actual implementation against every declared obligation.
 
std::string a11::flow::HeaderBytes (const syntax::Constant &constant)
 Encode a constant using the native action-header textual convention.