Class anira::PlanReport#
-
class PlanReport#
A view of a handler’s anira_plan_report (valid until its next prepare or destroy): the rows copied into vectors through the stride-explicit enumerators. Plan 0 is the only plan of a single-candidate pipeline; the budget is the row field anira_plan_info::budget_ms.
Public Functions
-
inline explicit PlanReport(const anira_plan_report *report) noexcept#
Wraps a handler’s report; a null report has no plans and its enumerators throw ANIRA_ERROR_INVALID_ARGUMENT.
-
inline uint32_t num_plans() const noexcept#
The number of plans; a plan is a dense index below it.
-
inline std::vector<anira_plan_info> plans() const#
One anira_plan_info per plan, in plan order.
-
inline std::vector<anira_plan_slot> slots(uint32_t plan, bool inputs) const#
The input (inputs == true) or output slots of one plan, in tensor order.
-
inline std::vector<anira_plan_ext> extensions(uint32_t plan) const#
The extensions one plan consumes.
-
inline std::optional<uint32_t> find(const PlanQuery &query) const noexcept#
anira_plan_report_find: the dense index of the first plan with every property the query names, std::nullopt when none has them (ANIRA_ERROR_NOT_FOUND) or for a query that breaks the pair rule. Allocation-free; callable from any thread while the report is valid, so a host looks the plan of a backend choice up where it applies it (set_plan).
-
inline const anira_plan_report *native() const noexcept#
-
inline explicit PlanReport(const anira_plan_report *report) noexcept#