MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
InspectResult.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "QueryUtils.hpp"
4
6
7/**
8 * @brief Result of an introspect call.
9 *
10 * Owns the ValueGroup (header collapsible + value rows) and nested
11 * InspectResults for sub-objects. The caller's only per-tick obligation
12 * is tap_all() from a GraphicsRoutine.
13 */
16 std::vector<InspectResult> children;
17
18 /**
19 * @brief Tap all row links in this result and all children, recursively.
20 * Call once per graphics tick.
21 */
22 void tap_all()
23 {
24 for (auto& row : group.rows)
25 row.link.tap();
26 for (auto& c : children)
27 c.tap_all();
28 }
29
30 InspectResult() = default;
31 ~InspectResult() = default;
32
33 InspectResult(InspectResult&&) noexcept = default;
34 InspectResult& operator=(InspectResult&&) noexcept = default;
35 InspectResult(const InspectResult&) = delete;
36 InspectResult& operator=(const InspectResult&) = delete;
37};
38
39} // namespace MayaFlux::Portal::Forma
void tap_all()
Tap all row links in this result and all children, recursively.
InspectResult(InspectResult &&) noexcept=default
std::vector< InspectResult > children
Result of an introspect call.
std::vector< ValueRow > rows
Header collapsible with N value rows related to it.