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