Temperature.hh
Go to the documentation of this file.
A class that stores temperature information, and allows conversion between different units.
Definition: Temperature.hh:69
friend Temperature operator/(double _t, const Temperature &_temp)
Division operator for double type.
Definition: Temperature.hh:255
bool operator==(const double _temp) const
Equal to operator, where the value of _temp is assumed to be in Kelvin.
static double CelsiusToFahrenheit(const double _temp)
Convert Celsius to Fahrenheit.
Temperature & operator=(const Temperature &_temp)
Assignment operator.
bool operator==(const Temperature &_temp) const
Equal to operator.
bool operator<(const double _temp) const
Less than operator, where the value of _temp is assumed to be in Kelvin.
bool operator<=(const double _temp) const
Less than or equal operator, where the value of _temp is assumed to be in Kelvin.
Temperature operator*(const double _temp)
Multiplication operator.
bool operator<(const Temperature &_temp) const
Less than to operator.
Temperature & operator=(const double _temp)
Assignment operator.
const Temperature & operator*=(const Temperature &_temp)
Multiplication assignment operator.
bool operator>(const Temperature &_temp) const
Greater than operator.
Temperature operator*(const Temperature &_temp)
Multiplication operator.
void SetFahrenheit(const double _temp)
Set the temperature from a Fahrenheit value.
friend Temperature operator*(double _t, const Temperature &_temp)
Multiplication operator for double type.
Definition: Temperature.hh:226
friend std::istream & operator>>(std::istream &_in, Temperature &_temp)
Stream extraction operator.
Definition: Temperature.hh:352
void SetCelsius(const double _temp)
Set the temperature from a Celsius value.
const Temperature & operator/=(const Temperature &_temp)
Division assignment operator.
Temperature operator-(const Temperature &_temp)
Subtraction operator.
Temperature operator/(const Temperature &_temp)
Division operator.
static double KelvinToFahrenheit(const double _temp)
Convert Kelvin to Fahrenheit.
friend Temperature operator+(double _t, const Temperature &_temp)
Addition operator for double type.
Definition: Temperature.hh:168
const Temperature & operator+=(const Temperature &_temp)
Addition assignment operator.
const Temperature & operator-=(const Temperature &_temp)
Subtraction assignment operator.
static double KelvinToCelsius(const double _temp)
Convert Kelvin to Celsius.
Temperature(const double _temp)
Kelvin value constructor. This is a conversion constructor.
static double CelsiusToKelvin(const double _temp)
Convert Celsius to Kelvin.
friend std::ostream & operator<<(std::ostream &_out, const Temperature &_temp)
Stream insertion operator.
Definition: Temperature.hh:340
const Temperature & operator+=(const double _temp)
Addition assignment operator.
bool operator>=(const Temperature &_temp) const
Greater than or equal to operator.
const Temperature & operator*=(const double _temp)
Multiplication assignment operator.
const Temperature & operator-=(const double _temp)
Subtraction assignment operator.
bool operator!=(const double _temp) const
Inequality to operator, where the value of _temp is assumed to be in Kelvin.
Temperature operator+(const Temperature &_temp)
Addition operator.
bool operator>(const double _temp) const
Greater than operator, where the value of _temp is assumed to be in Kelvin.
friend Temperature operator-(double _t, const Temperature &_temp)
Subtraction operator for double type.
Definition: Temperature.hh:197
bool operator<=(const Temperature &_temp) const
Less than or equal to operator.
static double FahrenheitToCelsius(const double _temp)
Convert Fahrenheit to Celsius.
void SetKelvin(const double _temp)
Set the temperature from a Kelvin value.
bool operator!=(const Temperature &_temp) const
Inequality to operator.
static double FahrenheitToKelvin(const double _temp)
Convert Fahrenheit to Kelvin.
bool operator>=(const double _temp) const
Greater than equal operator, where the value of _temp is assumed to be in Kelvin.
const Temperature & operator/=(const double _temp)
Division assignment operator.
Temperature operator-(const double _temp)
Subtraction operator.
T fail(T... args)
Definition: Angle.hh:43
T setf(T... args)