morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
quantity_equation.hpp File Reference

Quantity::equation() renderer (provenance builds only). More...

#include <cstdint>
#include <format>
#include <optional>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include "../attributes.hpp"
#include "../util/quantity.hpp"
#include "../util/rational.hpp"

Go to the source code of this file.

Detailed Description

Quantity::equation() renderer (provenance builds only).

Included by morph/util/quantity.hpp when MORPH_QUANTITY_PROVENANCE is on. Walks the shared derivation DAG and produces the print-ready equation() lines: formula, substitution, result, and a where legend for reused values. See docs/spec/util/quantity_type.md for the output contract.

Definition in file quantity_equation.hpp.