|
rippled
|
Classes | |
| class | ValueUnit |
Concepts | |
| concept | Valid |
| concept | Usable |
Usable is checked to ensure that only values with known valid type tags can be used (sometimes transparently) in non-unit contexts. | |
| concept | Compatible |
| concept | Integral |
| concept | IntegralValue |
| concept | CastableValue |
| concept | muldivSource |
| concept | muldivDest |
| concept | muldivSources |
| concept | muldivable |
| concept | muldivCommutable |
Functions | |
| template<class Char , class Traits , class UnitTag , class T > | |
| std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, ValueUnit< UnitTag, T > const &q) |
| template<class UnitTag , class T > | |
| std::string | to_string (ValueUnit< UnitTag, T > const &amount) |
| template<class T > | |
| ValueUnit< unitlessTag, T > | scalar (T value) |
| template<class Source1 , class Source2 , unit::muldivable< Source1, Source2 > Dest> | |
| std::optional< Dest > | mulDivU (Source1 value, Dest mul, Source2 div) |
| std::basic_ostream< Char, Traits > & ripple::unit::operator<< | ( | std::basic_ostream< Char, Traits > & | os, |
| ValueUnit< UnitTag, T > const & | q | ||
| ) |
| std::string ripple::unit::to_string | ( | ValueUnit< UnitTag, T > const & | amount | ) |
| ValueUnit< unitlessTag, T > ripple::unit::scalar | ( | T | value | ) |
| std::optional< Dest > ripple::unit::mulDivU | ( | Source1 | value, |
| Dest | mul, | ||
| Source2 | div | ||
| ) |