|
| constexpr | temperature ()=default |
| | Constructs a temperature at the scale's zero point.
|
| |
| | temperature (const temperature &)=default |
| |
template<typename Rep2 >
requires std::convertible_to<const Rep2&, rep> && (treat_as_inexact_v<rep> || !treat_as_inexact_v<Rep2>) |
| constexpr | temperature (const Rep2 &r) |
| | Constructs from a tick count.
|
| |
| constexpr | temperature (const Delta &d) |
| | Constructs from a delta.
|
| |
template<typename Delta2 >
requires (!std::is_same_v<Delta, Delta2>) && (treat_as_inexact_v<rep> || (_harmonic_precision<typename Delta2::precision, typename Delta::precision> && !treat_as_inexact_v<typename Delta2::rep>)) |
| constexpr | temperature (const temperature< Scale, Delta2 > &t) |
| |
template<typename Delta2 >
requires (!std::is_same_v<Delta, Delta2>) && (!treat_as_inexact_v<rep>) && (!_harmonic_precision<typename Delta2::precision, typename Delta::precision>) |
| constexpr | temperature (const temperature< Scale, Delta2 > &t) |
| |
template<typename Scale2 , typename Delta2 >
requires (!std::is_same_v<temperature, temperature<Scale2, Delta2>>) && _lossless_temperature_conversion<Scale2, Delta2, Scale, Delta> && (treat_as_inexact_v<rep> || !treat_as_inexact_v<typename Delta2::rep>) |
| constexpr | temperature (const temperature< Scale2, Delta2 > &t) |
| |
template<typename Scale2 , typename Delta2 >
requires (!std::is_same_v<temperature, temperature<Scale2, Delta2>>) && (!_lossless_temperature_conversion<Scale2, Delta2, Scale, Delta>) |
| constexpr | temperature (const temperature< Scale2, Delta2 > &t) |
| |
| | ~temperature ()=default |
| |
| temperature & | operator= (const temperature &)=default |
| |
| constexpr rep | count () const |
| | Returns the tick count.
|
| |
| constexpr temperature & | operator++ () |
| |
| constexpr temperature | operator++ (int) |
| |
| constexpr temperature & | operator-- () |
| |
| constexpr temperature | operator-- (int) |
| |
| template<typename Rep2 , typename Precision2 > |
| constexpr temperature & | operator+= (const delta< Rep2, Precision2 > &d) |
| |
| template<typename Rep2 , typename Precision2 > |
| constexpr temperature & | operator-= (const delta< Rep2, Precision2 > &d) |
| |
An absolute temperature on a given scale.
Similar to std::chrono::time_point, temperature represents an absolute point on a temperature scale. The scale defines the zero point (offset from absolute zero), and the delta type defines the precision.
- Template Parameters
-
| Scale | The temperature scale (celsius_scale, kelvin_scale, fahrenheit_scale). |
| Delta | The delta type for precision (default: delta<int64_t>). |
Definition at line 599 of file thermo.hpp.