|
electro 0.4.1
Type-safe electrical units library modeled after std::chrono
|
Standard integer-based types using int64_t representation. More...
Typedefs | |
| template<typename Rep , typename Precision = std::ratio<1>> | |
| using | electro::voltage = quantity< volt_unit, Rep, Precision > |
| Voltage quantity with configurable representation and precision. | |
| template<typename Rep , typename Precision = std::ratio<1>> | |
| using | electro::current = quantity< ampere_unit, Rep, Precision > |
| Current quantity with configurable representation and precision. | |
| template<typename Rep , typename Precision = std::ratio<1>> | |
| using | electro::resistance = quantity< ohm_unit, Rep, Precision > |
| Resistance quantity with configurable representation and precision. | |
| template<typename Rep , typename Precision = std::ratio<1>> | |
| using | electro::power = quantity< watt_unit, Rep, Precision > |
| Power quantity with configurable representation and precision. | |
| template<typename Rep , typename Precision = std::ratio<1>> | |
| using | electro::charge = quantity< coulomb_unit, Rep, Precision > |
| Charge quantity with configurable representation and precision. | |
| template<typename Rep , typename Precision = std::ratio<1>> | |
| using | electro::energy = quantity< joule_unit, Rep, Precision > |
| Energy quantity with configurable representation and precision. | |
| template<typename Rep , typename Precision = std::ratio<1>> | |
| using | electro::capacitance = quantity< farad_unit, Rep, Precision > |
| Capacitance quantity with configurable representation and precision. | |
| template<typename Rep , typename Precision = std::ratio<1>> | |
| using | electro::inductance = quantity< henry_unit, Rep, Precision > |
| Inductance quantity with configurable representation and precision. | |
| using | electro::microvolts = voltage< int64_t, std::micro > |
| Voltage with 1 µV precision. | |
| using | electro::millivolts = voltage< int64_t, std::milli > |
| Voltage with 1 mV precision. | |
| using | electro::volts = voltage< int64_t > |
| Voltage with 1 V precision. | |
| using | electro::kilovolts = voltage< int64_t, std::kilo > |
| Voltage with 1 kV precision. | |
| using | electro::microamperes = current< int64_t, std::micro > |
| Current with 1 µA precision. | |
| using | electro::milliamperes = current< int64_t, std::milli > |
| Current with 1 mA precision. | |
| using | electro::amperes = current< int64_t > |
| Current with 1 A precision. | |
| using | electro::microamps = microamperes |
| Shorthand for microamperes. | |
| using | electro::milliamps = milliamperes |
| Shorthand for milliamperes. | |
| using | electro::amps = amperes |
| Shorthand for amperes. | |
| using | electro::milliohms = resistance< int64_t, std::milli > |
| Resistance with 1 mΩ precision. | |
| using | electro::ohms = resistance< int64_t > |
| Resistance with 1 Ω precision. | |
| using | electro::kiloohms = resistance< int64_t, std::kilo > |
| Resistance with 1 kΩ precision. | |
| using | electro::megaohms = resistance< int64_t, std::mega > |
| Resistance with 1 MΩ precision. | |
| using | electro::gigaohms = resistance< int64_t, std::giga > |
| Resistance with 1 GΩ precision. | |
| using | electro::microwatts = power< int64_t, std::micro > |
| Power with 1 µW precision. | |
| using | electro::milliwatts = power< int64_t, std::milli > |
| Power with 1 mW precision. | |
| using | electro::watts = power< int64_t > |
| Power with 1 W precision. | |
| using | electro::kilowatts = power< int64_t, std::kilo > |
| Power with 1 kW precision. | |
| using | electro::megawatts = power< int64_t, std::mega > |
| Power with 1 MW precision. | |
| using | electro::gigawatts = power< int64_t, std::giga > |
| Power with 1 GW precision. | |
| using | electro::microcoulombs = charge< int64_t, std::micro > |
| Charge with 1 µC precision. | |
| using | electro::millicoulombs = charge< int64_t, std::milli > |
| Charge with 1 mC precision. | |
| using | electro::coulombs = charge< int64_t > |
| Charge with 1 C precision. | |
| using | electro::milliampere_hours = charge< int64_t, std::ratio< 18, 5 > > |
| Charge with 1 mAh (3.6 C) precision. | |
| using | electro::ampere_hours = charge< int64_t, std::ratio< 3600 > > |
| Charge with 1 Ah (3600 C) precision. | |
| using | electro::millijoules = energy< int64_t, std::milli > |
| Energy with 1 mJ precision. | |
| using | electro::joules = energy< int64_t > |
| Energy with 1 J precision. | |
| using | electro::kilojoules = energy< int64_t, std::kilo > |
| Energy with 1 kJ precision. | |
| using | electro::megajoules = energy< int64_t, std::mega > |
| Energy with 1 MJ precision. | |
| using | electro::watt_hours = energy< int64_t, std::ratio< 3600 > > |
| Energy with 1 Wh (3600 J) precision. | |
| using | electro::kilowatt_hours = energy< int64_t, std::ratio< 3600000 > > |
| Energy with 1 kWh (3,600,000 J) precision. | |
| using | electro::picofarads = capacitance< int64_t, std::pico > |
| Capacitance with 1 pF precision. | |
| using | electro::nanofarads = capacitance< int64_t, std::nano > |
| Capacitance with 1 nF precision. | |
| using | electro::microfarads = capacitance< int64_t, std::micro > |
| Capacitance with 1 µF precision. | |
| using | electro::millifarads = capacitance< int64_t, std::milli > |
| Capacitance with 1 mF precision. | |
| using | electro::farads = capacitance< int64_t > |
| Capacitance with 1 F precision. | |
| using | electro::nanohenries = inductance< int64_t, std::nano > |
| Inductance with 1 nH precision. | |
| using | electro::microhenries = inductance< int64_t, std::micro > |
| Inductance with 1 µH precision. | |
| using | electro::millihenries = inductance< int64_t, std::milli > |
| Inductance with 1 mH precision. | |
| using | electro::henries = inductance< int64_t > |
| Inductance with 1 H precision. | |
Standard integer-based types using int64_t representation.
For floating-point representations, use the alias templates, e.g. voltage<double> or current<double, std::milli>.
| using electro::ampere_hours = typedef charge<int64_t, std::ratio<3600> > |
Charge with 1 Ah (3600 C) precision.
Definition at line 1094 of file electro.hpp.
Current with 1 A precision.
Definition at line 1053 of file electro.hpp.
Shorthand for amperes.
Definition at line 1059 of file electro.hpp.
Capacitance quantity with configurable representation and precision.
Definition at line 1033 of file electro.hpp.
Charge quantity with configurable representation and precision.
Definition at line 1025 of file electro.hpp.
Charge with 1 C precision.
Definition at line 1090 of file electro.hpp.
Current quantity with configurable representation and precision.
Definition at line 1013 of file electro.hpp.
Energy quantity with configurable representation and precision.
Definition at line 1029 of file electro.hpp.
Capacitance with 1 F precision.
Definition at line 1118 of file electro.hpp.
| using electro::gigaohms = typedef resistance<int64_t, std::giga> |
Resistance with 1 GΩ precision.
Definition at line 1070 of file electro.hpp.
| using electro::gigawatts = typedef power<int64_t, std::giga> |
Power with 1 GW precision.
Definition at line 1083 of file electro.hpp.
Inductance with 1 H precision.
Definition at line 1127 of file electro.hpp.
Inductance quantity with configurable representation and precision.
Definition at line 1037 of file electro.hpp.
Energy with 1 J precision.
Definition at line 1099 of file electro.hpp.
| using electro::kilojoules = typedef energy<int64_t, std::kilo> |
Energy with 1 kJ precision.
Definition at line 1101 of file electro.hpp.
| using electro::kiloohms = typedef resistance<int64_t, std::kilo> |
Resistance with 1 kΩ precision.
Definition at line 1066 of file electro.hpp.
| using electro::kilovolts = typedef voltage<int64_t, std::kilo> |
Voltage with 1 kV precision.
Definition at line 1046 of file electro.hpp.
| using electro::kilowatt_hours = typedef energy<int64_t, std::ratio<3600000> > |
Energy with 1 kWh (3,600,000 J) precision.
Definition at line 1107 of file electro.hpp.
| using electro::kilowatts = typedef power<int64_t, std::kilo> |
Power with 1 kW precision.
Definition at line 1079 of file electro.hpp.
| using electro::megajoules = typedef energy<int64_t, std::mega> |
Energy with 1 MJ precision.
Definition at line 1103 of file electro.hpp.
| using electro::megaohms = typedef resistance<int64_t, std::mega> |
Resistance with 1 MΩ precision.
Definition at line 1068 of file electro.hpp.
| using electro::megawatts = typedef power<int64_t, std::mega> |
Power with 1 MW precision.
Definition at line 1081 of file electro.hpp.
| using electro::microamperes = typedef current<int64_t, std::micro> |
Current with 1 µA precision.
Definition at line 1049 of file electro.hpp.
Shorthand for microamperes.
Definition at line 1055 of file electro.hpp.
| using electro::microcoulombs = typedef charge<int64_t, std::micro> |
Charge with 1 µC precision.
Definition at line 1086 of file electro.hpp.
| using electro::microfarads = typedef capacitance<int64_t, std::micro> |
Capacitance with 1 µF precision.
Definition at line 1114 of file electro.hpp.
| using electro::microhenries = typedef inductance<int64_t, std::micro> |
Inductance with 1 µH precision.
Definition at line 1123 of file electro.hpp.
| using electro::microvolts = typedef voltage<int64_t, std::micro> |
Voltage with 1 µV precision.
Definition at line 1040 of file electro.hpp.
| using electro::microwatts = typedef power<int64_t, std::micro> |
Power with 1 µW precision.
Definition at line 1073 of file electro.hpp.
| using electro::milliampere_hours = typedef charge<int64_t, std::ratio<18, 5> > |
Charge with 1 mAh (3.6 C) precision.
Definition at line 1092 of file electro.hpp.
| using electro::milliamperes = typedef current<int64_t, std::milli> |
Current with 1 mA precision.
Definition at line 1051 of file electro.hpp.
Shorthand for milliamperes.
Definition at line 1057 of file electro.hpp.
| using electro::millicoulombs = typedef charge<int64_t, std::milli> |
Charge with 1 mC precision.
Definition at line 1088 of file electro.hpp.
| using electro::millifarads = typedef capacitance<int64_t, std::milli> |
Capacitance with 1 mF precision.
Definition at line 1116 of file electro.hpp.
| using electro::millihenries = typedef inductance<int64_t, std::milli> |
Inductance with 1 mH precision.
Definition at line 1125 of file electro.hpp.
| using electro::millijoules = typedef energy<int64_t, std::milli> |
Energy with 1 mJ precision.
Definition at line 1097 of file electro.hpp.
| using electro::milliohms = typedef resistance<int64_t, std::milli> |
Resistance with 1 mΩ precision.
Definition at line 1062 of file electro.hpp.
| using electro::millivolts = typedef voltage<int64_t, std::milli> |
Voltage with 1 mV precision.
Definition at line 1042 of file electro.hpp.
| using electro::milliwatts = typedef power<int64_t, std::milli> |
Power with 1 mW precision.
Definition at line 1075 of file electro.hpp.
| using electro::nanofarads = typedef capacitance<int64_t, std::nano> |
Capacitance with 1 nF precision.
Definition at line 1112 of file electro.hpp.
| using electro::nanohenries = typedef inductance<int64_t, std::nano> |
Inductance with 1 nH precision.
Definition at line 1121 of file electro.hpp.
Resistance with 1 Ω precision.
Definition at line 1064 of file electro.hpp.
| using electro::picofarads = typedef capacitance<int64_t, std::pico> |
Capacitance with 1 pF precision.
Definition at line 1110 of file electro.hpp.
Power quantity with configurable representation and precision.
Definition at line 1021 of file electro.hpp.
Resistance quantity with configurable representation and precision.
Definition at line 1017 of file electro.hpp.
Voltage quantity with configurable representation and precision.
Definition at line 1009 of file electro.hpp.
Voltage with 1 V precision.
Definition at line 1044 of file electro.hpp.
| using electro::watt_hours = typedef energy<int64_t, std::ratio<3600> > |
Energy with 1 Wh (3600 J) precision.
Definition at line 1105 of file electro.hpp.
Power with 1 W precision.
Definition at line 1077 of file electro.hpp.