A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
contract.cc File Reference
#include "a11/flow/contract.h"
#include <algorithm>
#include <utility>
#include <absl/container/flat_hash_map.h>
#include <absl/container/flat_hash_set.h>
#include <absl/status/statusor.h>
#include <absl/strings/ascii.h>
#include <absl/strings/str_cat.h>
#include <absl/strings/str_replace.h>
#include <absl/time/time.h>
#include <nlohmann/json.hpp>
#include "a11/flow/emit_json.h"
#include "a11/flow/vocabulary.h"

Namespaces

namespace  a11
 
namespace  a11::flow
 

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 *budget)
 
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.
 
std::string a11::flow::HeaderBytes (const syntax::Constant &constant)
 Encode a constant using the native action-header textual convention.
 
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.
 

Variable Documentation

◆ input

const PortPlan* input = nullptr

◆ inputs

size_t inputs = 0

◆ output

const PortPlan* output = nullptr

◆ outputs

size_t outputs = 0