units_energy(3)

units::energy(3) Unit Conversion and Dimensional Analysis Library units::energy(3)

NAME

units::energy - namespace for unit types and containers representing energy values

SYNOPSIS

Typedefs

Units (full names plural)



typedef unit< std::ratio< 1 >, units::category::energy_unit > joules


Units (full names singular)



typedef joules joule


Units (abbreviated)



typedef joules J


Unit Containers



typedef unit_t< joule > joule_t
typedef unit_t< calorie > calorie_t
typedef unit_t< kilowatt_hour > kilowatt_hour_t
typedef unit_t< watt_hour > watt_hour_t
typedef unit_t< british_thermal_unit > british_thermal_unit_t
typedef unit_t< british_thermal_unit_iso > british_thermal_unit_iso_t
typedef unit_t< british_thermal_unit_59 > british_thermal_unit_59_t
typedef unit_t< therm > therm_t
typedef unit_t< foot_pound > foot_pound_t


Functions


std::ostream & operator<< (std::ostream &os, const joule_t &obj)
std::string to_string (const joule_t &obj)
std::ostream & operator<< (std::ostream &os, const calorie_t &obj)
std::string to_string (const calorie_t &obj)
std::ostream & operator<< (std::ostream &os, const kilowatt_hour_t &obj)
std::string to_string (const kilowatt_hour_t &obj)
std::ostream & operator<< (std::ostream &os, const watt_hour_t &obj)
std::string to_string (const watt_hour_t &obj)
std::ostream & operator<< (std::ostream &os, const british_thermal_unit_t &obj)
std::string to_string (const british_thermal_unit_t &obj)
std::ostream & operator<< (std::ostream &os, const british_thermal_unit_iso_t &obj)
std::string to_string (const british_thermal_unit_iso_t &obj)
std::ostream & operator<< (std::ostream &os, const british_thermal_unit_59_t &obj)
std::string to_string (const british_thermal_unit_59_t &obj)
std::ostream & operator<< (std::ostream &os, const therm_t &obj)
std::string to_string (const therm_t &obj)
std::ostream & operator<< (std::ostream &os, const foot_pound_t &obj)
std::string to_string (const foot_pound_t &obj)

Detailed Description

namespace for unit types and containers representing energy values

The SI unit for energy is joules, and the corresponding base_unit category is energy_unit.

See also

See unit_t for more information on unit type containers.

Author

Generated automatically by Doxygen for Unit Conversion and Dimensional Analysis Library from the source code.

Wed Feb 11 2026 09:38:34 Version 2.3.0