roo_quantity
API Documentation for roo_quantity
Loading...
Searching...
No Matches
temperature.h File Reference
#include <cmath>
#include "roo_flags.h"
#include "roo_logging.h"
#include "roo_time.h"
Include dependency graph for temperature.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  roo_quantity::Temperature
 Representation of a temperature, internally stored as floating-point Celsius degrees. More...
 
class  roo_quantity::TemperatureDelta
 

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

 ROO_DECLARE_FLAG (char, roo_quantity_default_temperature_unit)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Temperature &t)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const TemperatureDelta &dt)
 
Temperature roo_quantity::UnknownTemperature ()
 Returns a temperature object representing an unknown temperature.
 
Temperature roo_quantity::TemperatureDegCelcius (float tempC)
 Returns a temperature object equivalent to the specified temperature expressed in Celcius degrees.
 
Temperature roo_quantity::TemperatureDegKelvin (float tempK)
 Returns a temperature object equivalent to the specified temperature expressed in Kelvin degrees.
 
Temperature roo_quantity::TemperatureDegFahrenheit (float tempF)
 Returns a temperature object approximately equal to the specified temperature expressed in Fahrenheit degrees.
 
TemperatureDelta roo_quantity::UnknownTemperatureDelta ()
 Returns a temperature object representing an unknown temperature delta.
 
TemperatureDelta roo_quantity::TemperatureDeltaDegCelcius (float tempC)
 Returns a temperature delta object equivalent to the specified temperature expressed in Celcius degrees.
 
TemperatureDelta roo_quantity::TemperatureDeltaDegKelvin (float tempK)
 Returns a temperature delta object equivalent to the specified temperature delta expressed in Kelvin degrees. It is in fact equivalent to TemperatureDeltaDegCelcius.
 
TemperatureDelta roo_quantity::TemperatureDeltaDegFahrenheit (float tempF)
 Returns a temperature delta object approximately equal to the specified temperature delta expressed in Fahrenheit degrees.
 
Temperature roo_quantity::operator+ (Temperature a, TemperatureDelta b)
 
Temperature roo_quantity::operator- (Temperature a, TemperatureDelta b)
 
Temperature roo_quantity::operator+ (TemperatureDelta a, Temperature b)
 
TemperatureDelta roo_quantity::operator+ (TemperatureDelta a, TemperatureDelta b)
 
TemperatureDelta roo_quantity::operator- (TemperatureDelta a, TemperatureDelta b)
 
TemperatureDelta roo_quantity::operator- (TemperatureDelta a)
 
TemperatureDelta roo_quantity::operator- (Temperature a, Temperature b)
 
TemperatureDelta roo_quantity::operator* (TemperatureDelta a, float b)
 
TemperatureDelta roo_quantity::operator* (float a, TemperatureDelta b)
 
TemperatureDelta roo_quantity::operator/ (TemperatureDelta a, float b)
 

Function Documentation

◆ ROO_DECLARE_FLAG()

ROO_DECLARE_FLAG ( char  ,
roo_quantity_default_temperature_unit   
)