electro 0.3.0
Type-safe electrical units library modeled after std::chrono
Loading...
Searching...
No Matches
Standard Quantity Type Aliases

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.
 

Detailed Description

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>.

Typedef Documentation

◆ ampere_hours

Charge with 1 Ah (3600 C) precision.

Definition at line 1056 of file electro.hpp.

◆ amperes

Current with 1 A precision.

Definition at line 1015 of file electro.hpp.

◆ amps

Shorthand for amperes.

Definition at line 1021 of file electro.hpp.

◆ capacitance

Capacitance quantity with configurable representation and precision.

Definition at line 995 of file electro.hpp.

◆ charge

Charge quantity with configurable representation and precision.

Definition at line 987 of file electro.hpp.

◆ coulombs

Charge with 1 C precision.

Definition at line 1052 of file electro.hpp.

◆ current

Current quantity with configurable representation and precision.

Definition at line 975 of file electro.hpp.

◆ energy

Energy quantity with configurable representation and precision.

Definition at line 991 of file electro.hpp.

◆ farads

Capacitance with 1 F precision.

Definition at line 1080 of file electro.hpp.

◆ gigaohms

Resistance with 1 GΩ precision.

Definition at line 1032 of file electro.hpp.

◆ gigawatts

Power with 1 GW precision.

Definition at line 1045 of file electro.hpp.

◆ henries

Inductance with 1 H precision.

Definition at line 1089 of file electro.hpp.

◆ inductance

Inductance quantity with configurable representation and precision.

Definition at line 999 of file electro.hpp.

◆ joules

Energy with 1 J precision.

Definition at line 1061 of file electro.hpp.

◆ kilojoules

Energy with 1 kJ precision.

Definition at line 1063 of file electro.hpp.

◆ kiloohms

Resistance with 1 kΩ precision.

Definition at line 1028 of file electro.hpp.

◆ kilovolts

Voltage with 1 kV precision.

Definition at line 1008 of file electro.hpp.

◆ kilowatt_hours

Energy with 1 kWh (3,600,000 J) precision.

Definition at line 1069 of file electro.hpp.

◆ kilowatts

Power with 1 kW precision.

Definition at line 1041 of file electro.hpp.

◆ megajoules

Energy with 1 MJ precision.

Definition at line 1065 of file electro.hpp.

◆ megaohms

Resistance with 1 MΩ precision.

Definition at line 1030 of file electro.hpp.

◆ megawatts

Power with 1 MW precision.

Definition at line 1043 of file electro.hpp.

◆ microamperes

Current with 1 µA precision.

Definition at line 1011 of file electro.hpp.

◆ microamps

Shorthand for microamperes.

Definition at line 1017 of file electro.hpp.

◆ microcoulombs

Charge with 1 µC precision.

Definition at line 1048 of file electro.hpp.

◆ microfarads

Capacitance with 1 µF precision.

Definition at line 1076 of file electro.hpp.

◆ microhenries

Inductance with 1 µH precision.

Definition at line 1085 of file electro.hpp.

◆ microvolts

Voltage with 1 µV precision.

Definition at line 1002 of file electro.hpp.

◆ microwatts

Power with 1 µW precision.

Definition at line 1035 of file electro.hpp.

◆ milliampere_hours

Charge with 1 mAh (3.6 C) precision.

Definition at line 1054 of file electro.hpp.

◆ milliamperes

Current with 1 mA precision.

Definition at line 1013 of file electro.hpp.

◆ milliamps

Shorthand for milliamperes.

Definition at line 1019 of file electro.hpp.

◆ millicoulombs

Charge with 1 mC precision.

Definition at line 1050 of file electro.hpp.

◆ millifarads

Capacitance with 1 mF precision.

Definition at line 1078 of file electro.hpp.

◆ millihenries

Inductance with 1 mH precision.

Definition at line 1087 of file electro.hpp.

◆ millijoules

Energy with 1 mJ precision.

Definition at line 1059 of file electro.hpp.

◆ milliohms

Resistance with 1 mΩ precision.

Definition at line 1024 of file electro.hpp.

◆ millivolts

Voltage with 1 mV precision.

Definition at line 1004 of file electro.hpp.

◆ milliwatts

Power with 1 mW precision.

Definition at line 1037 of file electro.hpp.

◆ nanofarads

Capacitance with 1 nF precision.

Definition at line 1074 of file electro.hpp.

◆ nanohenries

Inductance with 1 nH precision.

Definition at line 1083 of file electro.hpp.

◆ ohms

Resistance with 1 Ω precision.

Definition at line 1026 of file electro.hpp.

◆ picofarads

Capacitance with 1 pF precision.

Definition at line 1072 of file electro.hpp.

◆ power

Power quantity with configurable representation and precision.

Definition at line 983 of file electro.hpp.

◆ resistance

Resistance quantity with configurable representation and precision.

Definition at line 979 of file electro.hpp.

◆ voltage

Voltage quantity with configurable representation and precision.

Definition at line 971 of file electro.hpp.

◆ volts

Voltage with 1 V precision.

Definition at line 1006 of file electro.hpp.

◆ watt_hours

Energy with 1 Wh (3600 J) precision.

Definition at line 1067 of file electro.hpp.

◆ watts

Power with 1 W precision.

Definition at line 1039 of file electro.hpp.