|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A quantity in its own unit, with the factor that converts it to the column's canonical unit. More...
#include <data_source.hpp>
Public Attributes | |
| math::Rational | amount |
| The amount in the cell's own unit. | |
| math::Rational | toCanonical |
| Multiplier from the cell's unit to the column's canonical unit. | |
A quantity in its own unit, with the factor that converts it to the column's canonical unit.
The engine multiplies the two with checked arithmetic; a product that does not fit is an invalid cell, never a saturated one. A plain Rational in a Quantity column is taken as already canonical.
Definition at line 71 of file data_source.hpp.
| math::Rational morph::table::QuantityCell::amount |
The amount in the cell's own unit.
Definition at line 73 of file data_source.hpp.
| math::Rational morph::table::QuantityCell::toCanonical |
Multiplier from the cell's unit to the column's canonical unit.
Definition at line 75 of file data_source.hpp.