morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::detail::Number Struct Reference

A number taken apart for arithmetic: its exact value, whether it is an int, and its unit. More...

#include <expression.hpp>

Public Attributes

math::Rational value
 The exact value.
bool integer = false
 Whether it is an int.
std::string const * unit = nullptr
 The unit of a quantity; nullptr for a plain number.

Detailed Description

A number taken apart for arithmetic: its exact value, whether it is an int, and its unit.

Definition at line 1145 of file expression.hpp.

Member Data Documentation

◆ value

math::Rational morph::ui::detail::Number::value

The exact value.

Definition at line 1147 of file expression.hpp.

◆ integer

bool morph::ui::detail::Number::integer = false

Whether it is an int.

Definition at line 1149 of file expression.hpp.

◆ unit

std::string const* morph::ui::detail::Number::unit = nullptr

The unit of a quantity; nullptr for a plain number.

Definition at line 1151 of file expression.hpp.


The documentation for this struct was generated from the following file: