gem5 v24.0.0.0
|
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius. More...
#include <temperature.hh>
Public Member Functions | |
constexpr | Temperature (double _value=0.0) |
Explicit constructor assigning a value. | |
constexpr double | toKelvin () const |
constexpr double | toCelsius () const |
double | toFahrenheit () const |
constexpr bool | operator> (const Temperature &rhs) const |
constexpr bool | operator>= (const Temperature &rhs) const |
constexpr bool | operator< (const Temperature &rhs) const |
constexpr bool | operator<= (const Temperature &rhs) const |
constexpr bool | operator== (const Temperature &rhs) const |
constexpr bool | operator!= (const Temperature &rhs) const |
constexpr Temperature | operator+ (const Temperature &rhs) const |
constexpr Temperature | operator- (const Temperature &rhs) const |
Temperature & | operator+= (const Temperature &rhs) |
Temperature & | operator-= (const Temperature &rhs) |
Temperature & | operator*= (const double &rhs) |
Temperature & | operator/= (const double &rhs) |
Static Public Member Functions | |
static Temperature | fromKelvin (double _value) |
static Temperature | fromCelsius (double _value) |
static Temperature | fromFahrenheit (double _value) |
Private Attributes | |
double | value |
Temperature in Kelvin. | |
Friends | |
constexpr Temperature | operator* (const Temperature &lhs, const double &rhs) |
constexpr Temperature | operator* (const double &lhs, const Temperature &rhs) |
constexpr Temperature | operator/ (const Temperature &lhs, const double &rhs) |
std::ostream & | operator<< (std::ostream &out, const Temperature &t) |
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
Definition at line 50 of file temperature.hh.
|
inlineexplicitconstexpr |
Explicit constructor assigning a value.
Definition at line 59 of file temperature.hh.
Referenced by fromCelsius(), fromFahrenheit(), fromKelvin(), operator+(), and operator-().
|
static |
Definition at line 50 of file temperature.cc.
References Temperature().
Referenced by gem5::pybind_init_core(), and TEST().
|
static |
Definition at line 56 of file temperature.cc.
References Temperature().
Referenced by gem5::pybind_init_core(), and TEST().
|
static |
Definition at line 44 of file temperature.cc.
References Temperature().
Referenced by gem5::ThermalModel::doStep(), gem5::ThermalModel::getTemperature(), gem5::pybind_init_core(), and TEST().
|
inlineconstexpr |
Definition at line 103 of file temperature.hh.
References value.
|
inline |
Definition at line 144 of file temperature.hh.
References value.
|
inlineconstexpr |
Definition at line 109 of file temperature.hh.
References Temperature(), and value.
|
inline |
Definition at line 130 of file temperature.hh.
References value.
|
inlineconstexpr |
Definition at line 115 of file temperature.hh.
References Temperature(), and value.
|
inline |
Definition at line 137 of file temperature.hh.
References value.
|
inline |
Definition at line 151 of file temperature.hh.
References value.
|
inlineconstexpr |
Definition at line 84 of file temperature.hh.
References value.
|
inlineconstexpr |
Definition at line 90 of file temperature.hh.
References value.
|
inlineconstexpr |
Definition at line 97 of file temperature.hh.
References value.
|
inlineconstexpr |
Definition at line 73 of file temperature.hh.
References value.
|
inlineconstexpr |
Definition at line 79 of file temperature.hh.
References value.
|
inlineconstexpr |
Definition at line 69 of file temperature.hh.
References value.
Referenced by gem5::MathExprPowerModel::getStatValue(), gem5::pybind_init_core(), gem5::RealViewTemperatureSensor::read(), TEST(), and gem5::ThermalDomain::ThermalDomain().
double gem5::Temperature::toFahrenheit | ( | ) | const |
Definition at line 62 of file temperature.cc.
References value.
Referenced by gem5::pybind_init_core().
|
inlineconstexpr |
Definition at line 68 of file temperature.hh.
References value.
Referenced by gem5::ThermalCapacitor::getEquation(), gem5::ThermalResistor::getEquation(), gem5::pybind_init_core(), and TEST().
|
friend |
Definition at line 167 of file temperature.hh.
|
friend |
Definition at line 161 of file temperature.hh.
|
friend |
Definition at line 173 of file temperature.hh.
|
friend |
Definition at line 67 of file temperature.cc.
|
private |
Temperature in Kelvin.
Definition at line 55 of file temperature.hh.
Referenced by operator!=(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), toCelsius(), toFahrenheit(), and toKelvin().