38 #ifndef __BASE_TEMPERATURE_HH__
39 #define __BASE_TEMPERATURE_HH__
160 constexpr Temperature
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
constexpr friend Temperature operator/(const Temperature &lhs, const double &rhs)
double toFahrenheit() const
Temperature & operator-=(const Temperature &rhs)
static Temperature fromCelsius(double _value)
Temperature & operator+=(const Temperature &rhs)
constexpr bool operator>(const Temperature &rhs) const
constexpr double toKelvin() const
constexpr Temperature(double _value=0.0)
Explicit constructor assigning a value.
constexpr bool operator<=(const Temperature &rhs) const
constexpr double toCelsius() const
constexpr Temperature operator-(const Temperature &rhs) const
double value
Temperature in Kelvin.
constexpr bool operator<(const Temperature &rhs) const
friend std::ostream & operator<<(std::ostream &out, const Temperature &t)
constexpr friend Temperature operator*(const Temperature &lhs, const double &rhs)
constexpr bool operator!=(const Temperature &rhs) const
static Temperature fromFahrenheit(double _value)
constexpr bool operator==(const Temperature &rhs) const
Temperature & operator/=(const double &rhs)
constexpr Temperature operator+(const Temperature &rhs) const
Temperature & operator*=(const double &rhs)
static Temperature fromKelvin(double _value)
constexpr bool operator>=(const Temperature &rhs) const
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
constexpr Temperature operator/(const Temperature &lhs, const double &rhs)
constexpr Temperature operator*(const Temperature &lhs, const double &rhs)