quanta 0.1.0
Type-safe units for temperature, frequency, electrical and spatial quantities, modeled after std::chrono
Loading...
Searching...
No Matches
Standard Electrical Quantity Type Aliases

Standard integer-based types using int64_t representation. More...

Typedefs

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::voltage = quantity< volt_unit, Rep, Precision >
 Voltage quantity with configurable representation and precision.
 
template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::current = quantity< ampere_unit, Rep, Precision >
 Current quantity with configurable representation and precision.
 
template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::resistance = quantity< ohm_unit, Rep, Precision >
 Resistance quantity with configurable representation and precision.
 
template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::power = quantity< watt_unit, Rep, Precision >
 Power quantity with configurable representation and precision.
 
template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::charge = quantity< coulomb_unit, Rep, Precision >
 Charge quantity with configurable representation and precision.
 
template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::energy = quantity< joule_unit, Rep, Precision >
 Energy quantity with configurable representation and precision.
 
template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::capacitance = quantity< farad_unit, Rep, Precision >
 Capacitance quantity with configurable representation and precision.
 
template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::inductance = quantity< henry_unit, Rep, Precision >
 Inductance quantity with configurable representation and precision.
 
using quanta::electro::microvolts = voltage< int64_t, std::micro >
 Voltage with 1 µV precision.
 
using quanta::electro::millivolts = voltage< int64_t, std::milli >
 Voltage with 1 mV precision.
 
using quanta::electro::volts = voltage< int64_t >
 Voltage with 1 V precision.
 
using quanta::electro::kilovolts = voltage< int64_t, std::kilo >
 Voltage with 1 kV precision.
 
using quanta::electro::microamperes = current< int64_t, std::micro >
 Current with 1 µA precision.
 
using quanta::electro::milliamperes = current< int64_t, std::milli >
 Current with 1 mA precision.
 
using quanta::electro::amperes = current< int64_t >
 Current with 1 A precision.
 
using quanta::electro::microamps = microamperes
 Shorthand for microamperes.
 
using quanta::electro::milliamps = milliamperes
 Shorthand for milliamperes.
 
using quanta::electro::amps = amperes
 Shorthand for amperes.
 
using quanta::electro::milliohms = resistance< int64_t, std::milli >
 Resistance with 1 mΩ precision.
 
using quanta::electro::ohms = resistance< int64_t >
 Resistance with 1 Ω precision.
 
using quanta::electro::kiloohms = resistance< int64_t, std::kilo >
 Resistance with 1 kΩ precision.
 
using quanta::electro::megaohms = resistance< int64_t, std::mega >
 Resistance with 1 MΩ precision.
 
using quanta::electro::gigaohms = resistance< int64_t, std::giga >
 Resistance with 1 GΩ precision.
 
using quanta::electro::microwatts = power< int64_t, std::micro >
 Power with 1 µW precision.
 
using quanta::electro::milliwatts = power< int64_t, std::milli >
 Power with 1 mW precision.
 
using quanta::electro::watts = power< int64_t >
 Power with 1 W precision.
 
using quanta::electro::kilowatts = power< int64_t, std::kilo >
 Power with 1 kW precision.
 
using quanta::electro::megawatts = power< int64_t, std::mega >
 Power with 1 MW precision.
 
using quanta::electro::gigawatts = power< int64_t, std::giga >
 Power with 1 GW precision.
 
using quanta::electro::microcoulombs = charge< int64_t, std::micro >
 Charge with 1 µC precision.
 
using quanta::electro::millicoulombs = charge< int64_t, std::milli >
 Charge with 1 mC precision.
 
using quanta::electro::coulombs = charge< int64_t >
 Charge with 1 C precision.
 
using quanta::electro::milliampere_hours = charge< int64_t, std::ratio< 18, 5 > >
 Charge with 1 mAh (3.6 C) precision.
 
using quanta::electro::ampere_hours = charge< int64_t, std::ratio< 3600 > >
 Charge with 1 Ah (3600 C) precision.
 
using quanta::electro::millijoules = energy< int64_t, std::milli >
 Energy with 1 mJ precision.
 
using quanta::electro::joules = energy< int64_t >
 Energy with 1 J precision.
 
using quanta::electro::kilojoules = energy< int64_t, std::kilo >
 Energy with 1 kJ precision.
 
using quanta::electro::megajoules = energy< int64_t, std::mega >
 Energy with 1 MJ precision.
 
using quanta::electro::watt_hours = energy< int64_t, std::ratio< 3600 > >
 Energy with 1 Wh (3600 J) precision.
 
using quanta::electro::kilowatt_hours = energy< int64_t, std::ratio< 3600000 > >
 Energy with 1 kWh (3,600,000 J) precision.
 
using quanta::electro::picofarads = capacitance< int64_t, std::pico >
 Capacitance with 1 pF precision.
 
using quanta::electro::nanofarads = capacitance< int64_t, std::nano >
 Capacitance with 1 nF precision.
 
using quanta::electro::microfarads = capacitance< int64_t, std::micro >
 Capacitance with 1 µF precision.
 
using quanta::electro::millifarads = capacitance< int64_t, std::milli >
 Capacitance with 1 mF precision.
 
using quanta::electro::farads = capacitance< int64_t >
 Capacitance with 1 F precision.
 
using quanta::electro::nanohenries = inductance< int64_t, std::nano >
 Inductance with 1 nH precision.
 
using quanta::electro::microhenries = inductance< int64_t, std::micro >
 Inductance with 1 µH precision.
 
using quanta::electro::millihenries = inductance< int64_t, std::milli >
 Inductance with 1 mH precision.
 
using quanta::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

using quanta::electro::ampere_hours = typedef charge<int64_t, std::ratio<3600> >

Charge with 1 Ah (3600 C) precision.

Definition at line 973 of file electro.hpp.

◆ amperes

using quanta::electro::amperes = typedef current<int64_t>

Current with 1 A precision.

Definition at line 932 of file electro.hpp.

◆ amps

using quanta::electro::amps = typedef amperes

Shorthand for amperes.

Definition at line 938 of file electro.hpp.

◆ capacitance

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::capacitance = typedef quantity<farad_unit, Rep, Precision>

Capacitance quantity with configurable representation and precision.

Definition at line 912 of file electro.hpp.

◆ charge

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::charge = typedef quantity<coulomb_unit, Rep, Precision>

Charge quantity with configurable representation and precision.

Definition at line 904 of file electro.hpp.

◆ coulombs

using quanta::electro::coulombs = typedef charge<int64_t>

Charge with 1 C precision.

Definition at line 969 of file electro.hpp.

◆ current

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::current = typedef quantity<ampere_unit, Rep, Precision>

Current quantity with configurable representation and precision.

Definition at line 892 of file electro.hpp.

◆ energy

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::energy = typedef quantity<joule_unit, Rep, Precision>

Energy quantity with configurable representation and precision.

Definition at line 908 of file electro.hpp.

◆ farads

using quanta::electro::farads = typedef capacitance<int64_t>

Capacitance with 1 F precision.

Definition at line 997 of file electro.hpp.

◆ gigaohms

using quanta::electro::gigaohms = typedef resistance<int64_t, std::giga>

Resistance with 1 GΩ precision.

Definition at line 949 of file electro.hpp.

◆ gigawatts

using quanta::electro::gigawatts = typedef power<int64_t, std::giga>

Power with 1 GW precision.

Definition at line 962 of file electro.hpp.

◆ henries

using quanta::electro::henries = typedef inductance<int64_t>

Inductance with 1 H precision.

Definition at line 1006 of file electro.hpp.

◆ inductance

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::inductance = typedef quantity<henry_unit, Rep, Precision>

Inductance quantity with configurable representation and precision.

Definition at line 916 of file electro.hpp.

◆ joules

using quanta::electro::joules = typedef energy<int64_t>

Energy with 1 J precision.

Definition at line 978 of file electro.hpp.

◆ kilojoules

using quanta::electro::kilojoules = typedef energy<int64_t, std::kilo>

Energy with 1 kJ precision.

Definition at line 980 of file electro.hpp.

◆ kiloohms

using quanta::electro::kiloohms = typedef resistance<int64_t, std::kilo>

Resistance with 1 kΩ precision.

Definition at line 945 of file electro.hpp.

◆ kilovolts

using quanta::electro::kilovolts = typedef voltage<int64_t, std::kilo>

Voltage with 1 kV precision.

Definition at line 925 of file electro.hpp.

◆ kilowatt_hours

using quanta::electro::kilowatt_hours = typedef energy<int64_t, std::ratio<3600000> >

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

Definition at line 986 of file electro.hpp.

◆ kilowatts

using quanta::electro::kilowatts = typedef power<int64_t, std::kilo>

Power with 1 kW precision.

Definition at line 958 of file electro.hpp.

◆ megajoules

using quanta::electro::megajoules = typedef energy<int64_t, std::mega>

Energy with 1 MJ precision.

Definition at line 982 of file electro.hpp.

◆ megaohms

using quanta::electro::megaohms = typedef resistance<int64_t, std::mega>

Resistance with 1 MΩ precision.

Definition at line 947 of file electro.hpp.

◆ megawatts

using quanta::electro::megawatts = typedef power<int64_t, std::mega>

Power with 1 MW precision.

Definition at line 960 of file electro.hpp.

◆ microamperes

using quanta::electro::microamperes = typedef current<int64_t, std::micro>

Current with 1 µA precision.

Definition at line 928 of file electro.hpp.

◆ microamps

Shorthand for microamperes.

Definition at line 934 of file electro.hpp.

◆ microcoulombs

using quanta::electro::microcoulombs = typedef charge<int64_t, std::micro>

Charge with 1 µC precision.

Definition at line 965 of file electro.hpp.

◆ microfarads

using quanta::electro::microfarads = typedef capacitance<int64_t, std::micro>

Capacitance with 1 µF precision.

Definition at line 993 of file electro.hpp.

◆ microhenries

using quanta::electro::microhenries = typedef inductance<int64_t, std::micro>

Inductance with 1 µH precision.

Definition at line 1002 of file electro.hpp.

◆ microvolts

using quanta::electro::microvolts = typedef voltage<int64_t, std::micro>

Voltage with 1 µV precision.

Definition at line 919 of file electro.hpp.

◆ microwatts

using quanta::electro::microwatts = typedef power<int64_t, std::micro>

Power with 1 µW precision.

Definition at line 952 of file electro.hpp.

◆ milliampere_hours

using quanta::electro::milliampere_hours = typedef charge<int64_t, std::ratio<18, 5> >

Charge with 1 mAh (3.6 C) precision.

Definition at line 971 of file electro.hpp.

◆ milliamperes

using quanta::electro::milliamperes = typedef current<int64_t, std::milli>

Current with 1 mA precision.

Definition at line 930 of file electro.hpp.

◆ milliamps

Shorthand for milliamperes.

Definition at line 936 of file electro.hpp.

◆ millicoulombs

using quanta::electro::millicoulombs = typedef charge<int64_t, std::milli>

Charge with 1 mC precision.

Definition at line 967 of file electro.hpp.

◆ millifarads

using quanta::electro::millifarads = typedef capacitance<int64_t, std::milli>

Capacitance with 1 mF precision.

Definition at line 995 of file electro.hpp.

◆ millihenries

using quanta::electro::millihenries = typedef inductance<int64_t, std::milli>

Inductance with 1 mH precision.

Definition at line 1004 of file electro.hpp.

◆ millijoules

using quanta::electro::millijoules = typedef energy<int64_t, std::milli>

Energy with 1 mJ precision.

Definition at line 976 of file electro.hpp.

◆ milliohms

using quanta::electro::milliohms = typedef resistance<int64_t, std::milli>

Resistance with 1 mΩ precision.

Definition at line 941 of file electro.hpp.

◆ millivolts

using quanta::electro::millivolts = typedef voltage<int64_t, std::milli>

Voltage with 1 mV precision.

Definition at line 921 of file electro.hpp.

◆ milliwatts

using quanta::electro::milliwatts = typedef power<int64_t, std::milli>

Power with 1 mW precision.

Definition at line 954 of file electro.hpp.

◆ nanofarads

using quanta::electro::nanofarads = typedef capacitance<int64_t, std::nano>

Capacitance with 1 nF precision.

Definition at line 991 of file electro.hpp.

◆ nanohenries

using quanta::electro::nanohenries = typedef inductance<int64_t, std::nano>

Inductance with 1 nH precision.

Definition at line 1000 of file electro.hpp.

◆ ohms

using quanta::electro::ohms = typedef resistance<int64_t>

Resistance with 1 Ω precision.

Definition at line 943 of file electro.hpp.

◆ picofarads

using quanta::electro::picofarads = typedef capacitance<int64_t, std::pico>

Capacitance with 1 pF precision.

Definition at line 989 of file electro.hpp.

◆ power

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::power = typedef quantity<watt_unit, Rep, Precision>

Power quantity with configurable representation and precision.

Definition at line 900 of file electro.hpp.

◆ resistance

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::resistance = typedef quantity<ohm_unit, Rep, Precision>

Resistance quantity with configurable representation and precision.

Definition at line 896 of file electro.hpp.

◆ voltage

template<typename Rep , typename Precision = std::ratio<1>>
using quanta::electro::voltage = typedef quantity<volt_unit, Rep, Precision>

Voltage quantity with configurable representation and precision.

Definition at line 888 of file electro.hpp.

◆ volts

using quanta::electro::volts = typedef voltage<int64_t>

Voltage with 1 V precision.

Definition at line 923 of file electro.hpp.

◆ watt_hours

using quanta::electro::watt_hours = typedef energy<int64_t, std::ratio<3600> >

Energy with 1 Wh (3600 J) precision.

Definition at line 984 of file electro.hpp.

◆ watts

using quanta::electro::watts = typedef power<int64_t>

Power with 1 W precision.

Definition at line 956 of file electro.hpp.