Class anira::PipelineCapabilities#
-
class PipelineCapabilities#
The backends and edges a handler of one Pipeline sees on one Context: the context’s probed rows (Capabilities) and then one row per custom engine added to the pipeline and provider it serves here: ANIRA_PROVIDER_CPU alone for an engine without a providers list, else every declared provider its Engine::query reports usable (anira_pipeline_capabilities_backends / anira_pipeline_capabilities_edge). Every call runs the engines’ queries; the built-in rows are the context’s last probe’s. The strings of the rows point into the pipeline’s engines and the context’s store: valid while the Pipeline lives and until the context’s next probe.
Public Functions
-
inline PipelineCapabilities(const anira_pipeline *pipeline, const anira_context *context) noexcept#
-
inline std::vector<BackendId> backends() const#
The context’s backends, then the custom engines’ rows (ANIRA_ENGINE_CUSTOM with the engine’s id).
- Throws:
Error – with a query’s status when an engine’s query() throws.
-
inline anira_edge_info edge(Domain from, const BackendId &to) const#
The row from domain
fromto backendto, the way an input goes: the context’s registry for a built-in engine, the pipeline’s for a custom one (engine_id set).- Throws:
Error – with ANIRA_ERROR_EDGE_UNREACHABLE when neither registry has such a row.
-
inline anira_edge_info edge(const BackendId &from, Domain to) const#
The row from backend
fromto domainto, the way an output goes, from the same registries.- Throws:
Error – with ANIRA_ERROR_EDGE_UNREACHABLE when neither registry has such a row.
-
inline PipelineCapabilities(const anira_pipeline *pipeline, const anira_context *context) noexcept#