40#if !defined(DISABLE_PREDEFINED_UNITS) || \
41 defined(ENABLE_PREDEFINED_ENERGY_UNITS)
45 unit<
std::ratio<4184, 1000>, joules>)
46UNIT_ADD(energy, kilowatt_hour, kilowatt_hours, kWh,
47 unit<
std::ratio<36, 10>, megajoules>)
49 unit<
std::ratio<1, 1000>, kilowatt_hours>)
50UNIT_ADD(energy, british_thermal_unit, british_thermal_units, BTU,
51 unit<
std::ratio<105505585262, 100000000>, joules>)
53 unit<
std::ratio<1055056, 1000>, joules>)
54UNIT_ADD(energy, british_thermal_unit_59, british_thermal_units_59, BTU59,
55 unit<
std::ratio<1054804, 1000>, joules>)
57 unit<
std::ratio<100000>, british_thermal_units_59>)
59 unit<
std::ratio<13558179483314004, 10000000000000000>, joules>)
64using namespace energy;
Implement std::hash so that hash_code can be used in STL containers.
Definition PointerIntPair.h:280
Unit Conversion Library namespace.
Definition acceleration.h:33
foot_pounds
Definition torque.h:47
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > british_thermal_units_iso
Definition energy.h:52
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > british_thermal_unit_iso
Definition energy.h:52
cal
Definition energy.h:44
unit< std::ratio< 4184, 1000 >, joules > watt_hour
Definition energy.h:48
unit< std::ratio< 4184, 1000 >, joules > Wh
Definition energy.h:48
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > therms
Definition energy.h:56
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > thm
Definition energy.h:56
unit< std::ratio< 4184, 1000 >, joules > watt_hours
Definition energy.h:48
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > BTU_iso
Definition energy.h:52
calories
Definition energy.h:44
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > therm
Definition energy.h:56
foot_pound
Definition torque.h:47
calorie
Definition energy.h:44
Class representing SI base unit types.
Definition base.h:761
Type representing an arbitrary unit.
Definition base.h:888
#define UNIT_ADD(namespaceName, nameSingular, namePlural, abbreviation,...)
Macro for generating the boiler-plate code needed for a new unit.
Definition base.h:290
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition base.h:373
#define UNIT_ADD_WITH_METRIC_PREFIXES(namespaceName, nameSingular, namePlural, abbreviation,...)
Macro for generating the boiler-plate code needed for a new unit, including its metric prefixes from ...
Definition base.h:399