Go to the documentation of this file.
61 return value * 1.8 - 459.67;
67 out << temp.
value <<
"K";
static Temperature fromCelsius(double _value)
static Temperature fromFahrenheit(double _value)
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
std::ostream & operator<<(std::ostream &out, const Temperature &temp)
constexpr Temperature(double _value=0.0)
Explicit constructor assigning a value.
double toFahrenheit() const
double value
Temperature in Kelvin.
static Temperature fromKelvin(double _value)
Generated on Tue Jun 22 2021 15:28:25 for gem5 by doxygen 1.8.17