Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
forge_catalog_export.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <string>
6#include <string_view>
7#include <vector>
8
9namespace pulp::host {
10
14 std::string_view mode;
15 std::string type_id;
16 std::vector<CustomNodeBakedParam> baked_params;
17};
18
24 std::vector<ForgeCatalogExportRealization> realizations;
25};
26
30 std::string_view role;
31 std::string_view type_id;
32 std::string_view label;
35 unsigned inputs;
36 unsigned outputs;
37 unsigned state_bytes;
39 std::string_view config_kind;
40 std::string_view placement;
41};
42
44 {"input_boundary", "pulp.core.sample-region.input", "Sample Region Input", 1, 1, 1, 1, 0, 1,
45 "BoundaryIndex", "region_builder_only"},
46 {"output_boundary", "pulp.core.sample-region.output", "Sample Region Output", 1, 1, 1, 1, 0, 1,
47 "BoundaryIndex", "region_builder_only"},
48 {"constant", "pulp.core.sample-region.constant", "Constant", 1, 1, 0, 1, 0, 1, "FiniteConstant",
49 "normal_node"},
50 {"parameter", "pulp.core.sample-region.parameter", "Parameter", 1, 1, 0, 1, 0, 1,
51 "PromotedParameterId", "normal_node"},
52 {"add", "pulp.core.sample-region.add", "Add", 1, 1, 2, 1, 0, 1, "None", "normal_node"},
53 {"multiply", "pulp.core.sample-region.multiply", "Multiply", 1, 1, 2, 1, 0, 1, "None",
54 "normal_node"},
55 {"unit_delay", "pulp.core.unit-delay", "Unit Delay", 1, 1, 1, 1, 4, 4, "None", "normal_node"},
56};
57
59inline const ForgeSampleRegionV1* forge_sample_region_v1(std::string_view type_id) noexcept {
60 for (const auto& row : kForgeSampleRegionV1)
61 if (row.type_id == type_id)
62 return &row;
63 return nullptr;
64}
65
68std::vector<ForgeCatalogExportNode> forge_catalog_export_nodes();
69
71std::vector<ForgeAuditFinding>
72audit_forge_catalog_export(const std::vector<ForgeCatalogExportNode>& nodes);
73
76std::vector<ForgeAuditFinding>
77audit_catalog_export(const std::vector<ForgeCatalogExportNode>& nodes);
78
79} // namespace pulp::host
Bounded event contracts shared by host ingress and graph-authored nodes.
Definition anticipation_eligibility.hpp:9
std::vector< ForgeAuditFinding > audit_forge_catalog_export(const std::vector< ForgeCatalogExportNode > &nodes)
Audit descriptor/range joins and the independent expected-membership list.
constexpr ForgeSampleRegionV1 kForgeSampleRegionV1[]
Definition forge_catalog_export.hpp:43
const ForgeSampleRegionV1 * forge_sample_region_v1(std::string_view type_id) noexcept
A legacy realization without an exact v1 route remains block-only.
Definition forge_catalog_export.hpp:59
std::vector< ForgeAuditFinding > audit_catalog_export(const std::vector< ForgeCatalogExportNode > &nodes)
Audit descriptor/range joins without imposing Forge's catalog membership.
std::vector< ForgeCatalogExportNode > forge_catalog_export_nodes()
Build the semantic catalog projection used by both the CLI and the installed SDK snapshot.
One machine-readable catalog family before JSON serialization.
Definition forge_catalog_export.hpp:22
std::vector< ForgeCatalogExportRealization > realizations
Definition forge_catalog_export.hpp:24
ForgeNodeDescriptor descriptor
Definition forge_catalog_export.hpp:23
One actually constructed realization.
Definition forge_catalog_export.hpp:13
std::string_view mode
Definition forge_catalog_export.hpp:14
std::string type_id
Definition forge_catalog_export.hpp:15
std::vector< CustomNodeBakedParam > baked_params
Definition forge_catalog_export.hpp:16
Definition forge_param_descriptor.hpp:127
Exact v1 authoring routes.
Definition forge_catalog_export.hpp:29
unsigned outputs
Definition forge_catalog_export.hpp:36
std::string_view type_id
Definition forge_catalog_export.hpp:31
unsigned state_bytes
Definition forge_catalog_export.hpp:37
std::string_view config_kind
Definition forge_catalog_export.hpp:39
int type_version
Definition forge_catalog_export.hpp:33
std::string_view placement
Definition forge_catalog_export.hpp:40
unsigned state_alignment
Definition forge_catalog_export.hpp:38
std::string_view role
Definition forge_catalog_export.hpp:30
int sample_kernel_version
Definition forge_catalog_export.hpp:34
std::string_view label
Definition forge_catalog_export.hpp:32
unsigned inputs
Definition forge_catalog_export.hpp:35