DUDS
Distributed Update of Data from Something
duds::data::units Namespace Reference

A collection of Unit objects representing commonly used SI units. More...

Functions

constexpr Unit Ampere (DUDS_UNIT_VALUE(1, 0, 0, 0, 0, 0, 0, 0, 0))
 
constexpr Unit Becquerel (DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, -1, 0, 0))
 
constexpr Unit Candela (DUDS_UNIT_VALUE(0, 1, 0, 0, 0, 0, 0, 0, 0))
 
constexpr Unit Coulomb (DUDS_UNIT_VALUE(1, 0, 0, 0, 0, 0, 1, 0, 0))
 
constexpr Unit Farad (DUDS_UNIT_VALUE(2, 0, 0, -1, -2, 0, 4, 0, 0))
 
constexpr Unit Gray (DUDS_UNIT_VALUE(0, 0, 0, 0, 2, 0, -2, 0, 0))
 
constexpr Unit Henry (DUDS_UNIT_VALUE(-2, 0, 0, 1, 2, 0, -2, 0, 0))
 
constexpr Unit Hertz (DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, -1, 0, 0))
 
constexpr Unit Joule (DUDS_UNIT_VALUE(0, 0, 0, 1, 2, 0, -2, 0, 0))
 
constexpr Unit Katal (DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 1, -1, 0, 0))
 
constexpr Unit Kelvin (DUDS_UNIT_VALUE(0, 0, 1, 0, 0, 0, 0, 0, 0))
 
constexpr Unit Kilogram (DUDS_UNIT_VALUE(0, 0, 0, 1, 0, 0, 0, 0, 0))
 
constexpr Unit Lumen (DUDS_UNIT_VALUE(0, 1, 0, 0, 0, 0, 0, 0, 1))
 
constexpr Unit Lux (DUDS_UNIT_VALUE(0, 1, 0, 0, -2, 0, 0, 0, 1))
 
constexpr Unit Meter (DUDS_UNIT_VALUE(0, 0, 0, 0, 1, 0, 0, 0, 0))
 
constexpr Unit Mole (DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 1, 0, 0, 0))
 
constexpr Unit Newton (DUDS_UNIT_VALUE(0, 0, 0, 1, 1, 0, -2, 0, 0))
 
constexpr Unit Ohm (DUDS_UNIT_VALUE(-2, 0, 0, 1, 2, 0, -3, 0, 0))
 
constexpr Unit Pascal (DUDS_UNIT_VALUE(0, 0, 0, 1, -1, 0, -2, 0, 0))
 
constexpr Unit Radian (DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, 0, 1, 0))
 
constexpr Unit Second (DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, 1, 0, 0))
 
constexpr Unit Siemens (DUDS_UNIT_VALUE(2, 0, 0, -1, -2, 0, 3, 0, 0))
 
constexpr Unit Sievert (DUDS_UNIT_VALUE(0, 0, 0, 0, 2, 0, -2, 0, 0))
 
constexpr Unit Steradian (DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, 0, 0, 1))
 
constexpr Unit Tesla (DUDS_UNIT_VALUE(-1, 0, 0, 1, 0, 0, -2, 0, 0))
 
constexpr Unit Volt (DUDS_UNIT_VALUE(-1, 0, 0, 1, 2, 0, -3, 0, 0))
 
constexpr Unit Watt (DUDS_UNIT_VALUE(0, 0, 0, 1, 2, 0, -3, 0, 0))
 
constexpr Unit Weber (DUDS_UNIT_VALUE(-1, 0, 0, 0, 2, 0, -2, 0, 0))
 

Detailed Description

A collection of Unit objects representing commonly used SI units.

Todo:
Add ability to get a string, both long formal names in multiple languages and short symbols, that represents what the Unit contains.
Author
Jeff Jackowski

Function Documentation

◆ Ampere()

constexpr Unit duds::data::units::Ampere ( DUDS_UNIT_VALUE(1, 0, 0, 0, 0, 0, 0, 0, 0)  )

◆ Becquerel()

constexpr Unit duds::data::units::Becquerel ( DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, -1, 0, 0)  )

◆ Candela()

constexpr Unit duds::data::units::Candela ( DUDS_UNIT_VALUE(0, 1, 0, 0, 0, 0, 0, 0, 0)  )

◆ Coulomb()

constexpr Unit duds::data::units::Coulomb ( DUDS_UNIT_VALUE(1, 0, 0, 0, 0, 0, 1, 0, 0)  )

◆ Farad()

constexpr Unit duds::data::units::Farad ( DUDS_UNIT_VALUE(2, 0, 0, -1, -2, 0, 4, 0, 0)  )

◆ Gray()

constexpr Unit duds::data::units::Gray ( DUDS_UNIT_VALUE(0, 0, 0, 0, 2, 0, -2, 0, 0)  )

◆ Henry()

constexpr Unit duds::data::units::Henry ( DUDS_UNIT_VALUE(-2, 0, 0, 1, 2, 0, -2, 0, 0)  )

◆ Hertz()

constexpr Unit duds::data::units::Hertz ( DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, -1, 0, 0)  )

◆ Joule()

constexpr Unit duds::data::units::Joule ( DUDS_UNIT_VALUE(0, 0, 0, 1, 2, 0, -2, 0, 0)  )

◆ Katal()

constexpr Unit duds::data::units::Katal ( DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 1, -1, 0, 0)  )

◆ Kelvin()

◆ Kilogram()

constexpr Unit duds::data::units::Kilogram ( DUDS_UNIT_VALUE(0, 0, 0, 1, 0, 0, 0, 0, 0)  )

◆ Lumen()

constexpr Unit duds::data::units::Lumen ( DUDS_UNIT_VALUE(0, 1, 0, 0, 0, 0, 0, 0, 1)  )

◆ Lux()

constexpr Unit duds::data::units::Lux ( DUDS_UNIT_VALUE(0, 1, 0, 0, -2, 0, 0, 0, 1)  )

◆ Meter()

◆ Mole()

constexpr Unit duds::data::units::Mole ( DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 1, 0, 0, 0)  )

◆ Newton()

constexpr Unit duds::data::units::Newton ( DUDS_UNIT_VALUE(0, 0, 0, 1, 1, 0, -2, 0, 0)  )

◆ Ohm()

constexpr Unit duds::data::units::Ohm ( DUDS_UNIT_VALUE(-2, 0, 0, 1, 2, 0, -3, 0, 0)  )

◆ Pascal()

constexpr Unit duds::data::units::Pascal ( DUDS_UNIT_VALUE(0, 0, 0, 1, -1, 0, -2, 0, 0)  )

◆ Radian()

constexpr Unit duds::data::units::Radian ( DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, 0, 1, 0)  )

◆ Second()

◆ Siemens()

constexpr Unit duds::data::units::Siemens ( DUDS_UNIT_VALUE(2, 0, 0, -1, -2, 0, 3, 0, 0)  )

◆ Sievert()

constexpr Unit duds::data::units::Sievert ( DUDS_UNIT_VALUE(0, 0, 0, 0, 2, 0, -2, 0, 0)  )

◆ Steradian()

constexpr Unit duds::data::units::Steradian ( DUDS_UNIT_VALUE(0, 0, 0, 0, 0, 0, 0, 0, 1)  )

◆ Tesla()

constexpr Unit duds::data::units::Tesla ( DUDS_UNIT_VALUE(-1, 0, 0, 1, 0, 0, -2, 0, 0)  )

◆ Volt()

constexpr Unit duds::data::units::Volt ( DUDS_UNIT_VALUE(-1, 0, 0, 1, 2, 0, -3, 0, 0)  )

◆ Watt()

◆ Weber()

constexpr Unit duds::data::units::Weber ( DUDS_UNIT_VALUE(-1, 0, 0, 0, 2, 0, -2, 0, 0)  )