quanta 0.1.0
Type-safe units for temperature, frequency, electrical and spatial quantities, modeled after std::chrono
Loading...
Searching...
No Matches
quanta::literals::electro_literals Namespace Reference

Functions

template<char... Digits>
constexpr quanta::electro::decibels operator""_dB ()
 Literal for decibels (e.g., 20_dB).
 
template<char... Digits>
constexpr quanta::electro::centidecibels operator""_cdB ()
 Literal for centidecibels, i.e.
 
template<char... Digits>
constexpr quanta::electro::dbm operator""_dBm ()
 Literal for dBm (e.g., 20_dBm, or -73_dBm).
 
template<char... Digits>
constexpr quanta::electro::centi_dbm operator""_cdBm ()
 Literal for dBm in 0.01 dB steps (e.g., 1301_cdBm is 13.01 dBm).
 
template<char... Digits>
constexpr quanta::electro::dbw operator""_dBW ()
 Literal for dBW (e.g., 10_dBW).
 
template<char... Digits>
constexpr quanta::electro::dbv operator""_dBV ()
 Literal for dBV (e.g., 6_dBV).
 
template<char... Digits>
constexpr quanta::electro::dbmv operator""_dBmV ()
 Literal for dBmV (e.g., 40_dBmV).
 
template<char... Digits>
constexpr quanta::electro::dbuv operator""_dBuV ()
 Literal for dBµV (e.g., 120_dBuV).
 
template<char... Digits>
constexpr quanta::electro::dbuv operator""_dBµV ()
 Literal for dBµV (e.g., 120_dBµV).
 
template<char... Digits>
constexpr quanta::electro::microvolts operator""_uV ()
 Literal for microvolts (e.g., 500_uV).
 
template<char... Digits>
constexpr quanta::electro::millivolts operator""_mV ()
 Literal for millivolts (e.g., 3300_mV).
 
template<char... Digits>
constexpr quanta::electro::volts operator""_V ()
 Literal for volts (e.g., 5_V).
 
template<char... Digits>
constexpr quanta::electro::kilovolts operator""_kV ()
 Literal for kilovolts (e.g., 11_kV).
 
template<char... Digits>
constexpr quanta::electro::microamperes operator""_uA ()
 Literal for microamperes (e.g., 250_uA).
 
template<char... Digits>
constexpr quanta::electro::milliamperes operator""_mA ()
 Literal for milliamperes (e.g., 150_mA).
 
template<char... Digits>
constexpr quanta::electro::amperes operator""_A ()
 Literal for amperes (e.g., 2_A).
 
template<char... Digits>
constexpr quanta::electro::milliohms operator""_mOhm ()
 Literal for milliohms (e.g., 50_mOhm).
 
template<char... Digits>
constexpr quanta::electro::ohms operator""_Ohm ()
 Literal for ohms (e.g., 220_Ohm).
 
template<char... Digits>
constexpr quanta::electro::kiloohms operator""_kOhm ()
 Literal for kiloohms (e.g., 10_kOhm).
 
template<char... Digits>
constexpr quanta::electro::megaohms operator""_MOhm ()
 Literal for megaohms (e.g., 1_MOhm).
 
template<char... Digits>
constexpr quanta::electro::milliohms operator""_mΩ ()
 Literal for milliohms (e.g., 50_mΩ).
 
template<char... Digits>
constexpr quanta::electro::ohms operator""_Ω ()
 Literal for ohms (e.g., 220_Ω).
 
template<char... Digits>
constexpr quanta::electro::kiloohms operator""_kΩ ()
 Literal for kiloohms (e.g., 10_kΩ).
 
template<char... Digits>
constexpr quanta::electro::megaohms operator""_MΩ ()
 Literal for megaohms (e.g., 1_MΩ).
 
template<char... Digits>
constexpr quanta::electro::microwatts operator""_uW ()
 Literal for microwatts (e.g., 500_uW).
 
template<char... Digits>
constexpr quanta::electro::milliwatts operator""_mW ()
 Literal for milliwatts (e.g., 250_mW).
 
template<char... Digits>
constexpr quanta::electro::watts operator""_W ()
 Literal for watts (e.g., 60_W).
 
template<char... Digits>
constexpr quanta::electro::kilowatts operator""_kW ()
 Literal for kilowatts (e.g., 2_kW).
 
template<char... Digits>
constexpr quanta::electro::megawatts operator""_MW ()
 Literal for megawatts (e.g., 5_MW).
 
template<char... Digits>
constexpr quanta::electro::coulombs operator""_C ()
 Literal for coulombs (e.g., 10_C).
 
template<char... Digits>
constexpr quanta::electro::milliampere_hours operator""_mAh ()
 Literal for milliampere-hours (e.g., 2000_mAh).
 
template<char... Digits>
constexpr quanta::electro::ampere_hours operator""_Ah ()
 Literal for ampere-hours (e.g., 2_Ah).
 
template<char... Digits>
constexpr quanta::electro::millijoules operator""_mJ ()
 Literal for millijoules (e.g., 500_mJ).
 
template<char... Digits>
constexpr quanta::electro::joules operator""_J ()
 Literal for joules (e.g., 100_J).
 
template<char... Digits>
constexpr quanta::electro::kilojoules operator""_kJ ()
 Literal for kilojoules (e.g., 4_kJ).
 
template<char... Digits>
constexpr quanta::electro::watt_hours operator""_Wh ()
 Literal for watt-hours (e.g., 100_Wh).
 
template<char... Digits>
constexpr quanta::electro::kilowatt_hours operator""_kWh ()
 Literal for kilowatt-hours (e.g., 10_kWh).
 
template<char... Digits>
constexpr quanta::electro::picofarads operator""_pF ()
 Literal for picofarads (e.g., 22_pF).
 
template<char... Digits>
constexpr quanta::electro::nanofarads operator""_nF ()
 Literal for nanofarads (e.g., 100_nF).
 
template<char... Digits>
constexpr quanta::electro::microfarads operator""_uF ()
 Literal for microfarads (e.g., 10_uF).
 
template<char... Digits>
constexpr quanta::electro::farads operator""_F ()
 Literal for farads (e.g., 1_F).
 
template<char... Digits>
constexpr quanta::electro::nanohenries operator""_nH ()
 Literal for nanohenries (e.g., 100_nH).
 
template<char... Digits>
constexpr quanta::electro::microhenries operator""_uH ()
 Literal for microhenries (e.g., 47_uH).
 
template<char... Digits>
constexpr quanta::electro::millihenries operator""_mH ()
 Literal for millihenries (e.g., 10_mH).
 
template<char... Digits>
constexpr quanta::electro::henries operator""_H ()
 Literal for henries (e.g., 1_H).
 

Function Documentation

◆ operator""_Ω()

template<char... Digits>
constexpr quanta::electro::ohms quanta::literals::electro_literals::operator""_Ω ( )
constexpr

Literal for ohms (e.g., 220_Ω).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS).

Definition at line 1460 of file electro.hpp.

◆ operator""_A()

template<char... Digits>
constexpr quanta::electro::amperes quanta::literals::electro_literals::operator""_A ( )
constexpr

Literal for amperes (e.g., 2_A).

Definition at line 1423 of file electro.hpp.

◆ operator""_Ah()

template<char... Digits>
constexpr quanta::electro::ampere_hours quanta::literals::electro_literals::operator""_Ah ( )
constexpr

Literal for ampere-hours (e.g., 2_Ah).

Definition at line 1521 of file electro.hpp.

◆ operator""_C()

template<char... Digits>
constexpr quanta::electro::coulombs quanta::literals::electro_literals::operator""_C ( )
constexpr

Literal for coulombs (e.g., 10_C).

Definition at line 1509 of file electro.hpp.

◆ operator""_cdB()

template<char... Digits>
constexpr quanta::electro::centidecibels quanta::literals::electro_literals::operator""_cdB ( )
constexpr

Literal for centidecibels, i.e.

0.01 dB steps (e.g., 1050_cdB is 10.50 dB).

Definition at line 906 of file decibel.hpp.

◆ operator""_cdBm()

template<char... Digits>
constexpr quanta::electro::centi_dbm quanta::literals::electro_literals::operator""_cdBm ( )
constexpr

Literal for dBm in 0.01 dB steps (e.g., 1301_cdBm is 13.01 dBm).

Definition at line 918 of file decibel.hpp.

◆ operator""_dBµV()

template<char... Digits>
constexpr quanta::electro::dbuv quanta::literals::electro_literals::operator""_dBµV ( )
constexpr

Literal for dBµV (e.g., 120_dBµV).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS).

Definition at line 949 of file decibel.hpp.

◆ operator""_dB()

template<char... Digits>
constexpr quanta::electro::decibels quanta::literals::electro_literals::operator""_dB ( )
constexpr

Literal for decibels (e.g., 20_dB).

Definition at line 900 of file decibel.hpp.

◆ operator""_dBm()

template<char... Digits>
constexpr quanta::electro::dbm quanta::literals::electro_literals::operator""_dBm ( )
constexpr

Literal for dBm (e.g., 20_dBm, or -73_dBm).

Definition at line 912 of file decibel.hpp.

◆ operator""_dBmV()

template<char... Digits>
constexpr quanta::electro::dbmv quanta::literals::electro_literals::operator""_dBmV ( )
constexpr

Literal for dBmV (e.g., 40_dBmV).

Definition at line 936 of file decibel.hpp.

◆ operator""_dBuV()

template<char... Digits>
constexpr quanta::electro::dbuv quanta::literals::electro_literals::operator""_dBuV ( )
constexpr

Literal for dBµV (e.g., 120_dBuV).

Definition at line 942 of file decibel.hpp.

◆ operator""_dBV()

template<char... Digits>
constexpr quanta::electro::dbv quanta::literals::electro_literals::operator""_dBV ( )
constexpr

Literal for dBV (e.g., 6_dBV).

Definition at line 930 of file decibel.hpp.

◆ operator""_dBW()

template<char... Digits>
constexpr quanta::electro::dbw quanta::literals::electro_literals::operator""_dBW ( )
constexpr

Literal for dBW (e.g., 10_dBW).

Definition at line 924 of file decibel.hpp.

◆ operator""_F()

template<char... Digits>
constexpr quanta::electro::farads quanta::literals::electro_literals::operator""_F ( )
constexpr

Literal for farads (e.g., 1_F).

Definition at line 1575 of file electro.hpp.

◆ operator""_H()

template<char... Digits>
constexpr quanta::electro::henries quanta::literals::electro_literals::operator""_H ( )
constexpr

Literal for henries (e.g., 1_H).

Definition at line 1599 of file electro.hpp.

◆ operator""_J()

template<char... Digits>
constexpr quanta::electro::joules quanta::literals::electro_literals::operator""_J ( )
constexpr

Literal for joules (e.g., 100_J).

Definition at line 1533 of file electro.hpp.

◆ operator""_kΩ()

template<char... Digits>
constexpr quanta::electro::kiloohms quanta::literals::electro_literals::operator""_kΩ ( )
constexpr

Literal for kiloohms (e.g., 10_kΩ).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS).

Definition at line 1466 of file electro.hpp.

◆ operator""_kJ()

template<char... Digits>
constexpr quanta::electro::kilojoules quanta::literals::electro_literals::operator""_kJ ( )
constexpr

Literal for kilojoules (e.g., 4_kJ).

Definition at line 1539 of file electro.hpp.

◆ operator""_kOhm()

template<char... Digits>
constexpr quanta::electro::kiloohms quanta::literals::electro_literals::operator""_kOhm ( )
constexpr

Literal for kiloohms (e.g., 10_kOhm).

Definition at line 1441 of file electro.hpp.

◆ operator""_kV()

template<char... Digits>
constexpr quanta::electro::kilovolts quanta::literals::electro_literals::operator""_kV ( )
constexpr

Literal for kilovolts (e.g., 11_kV).

Definition at line 1405 of file electro.hpp.

◆ operator""_kW()

template<char... Digits>
constexpr quanta::electro::kilowatts quanta::literals::electro_literals::operator""_kW ( )
constexpr

Literal for kilowatts (e.g., 2_kW).

Definition at line 1497 of file electro.hpp.

◆ operator""_kWh()

template<char... Digits>
constexpr quanta::electro::kilowatt_hours quanta::literals::electro_literals::operator""_kWh ( )
constexpr

Literal for kilowatt-hours (e.g., 10_kWh).

Definition at line 1551 of file electro.hpp.

◆ operator""_mΩ()

template<char... Digits>
constexpr quanta::electro::milliohms quanta::literals::electro_literals::operator""_mΩ ( )
constexpr

Literal for milliohms (e.g., 50_mΩ).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS).

Definition at line 1454 of file electro.hpp.

◆ operator""_MΩ()

template<char... Digits>
constexpr quanta::electro::megaohms quanta::literals::electro_literals::operator""_MΩ ( )
constexpr

Literal for megaohms (e.g., 1_MΩ).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS).

Definition at line 1472 of file electro.hpp.

◆ operator""_mA()

template<char... Digits>
constexpr quanta::electro::milliamperes quanta::literals::electro_literals::operator""_mA ( )
constexpr

Literal for milliamperes (e.g., 150_mA).

Definition at line 1417 of file electro.hpp.

◆ operator""_mAh()

template<char... Digits>
constexpr quanta::electro::milliampere_hours quanta::literals::electro_literals::operator""_mAh ( )
constexpr

Literal for milliampere-hours (e.g., 2000_mAh).

Definition at line 1515 of file electro.hpp.

◆ operator""_mH()

template<char... Digits>
constexpr quanta::electro::millihenries quanta::literals::electro_literals::operator""_mH ( )
constexpr

Literal for millihenries (e.g., 10_mH).

Definition at line 1593 of file electro.hpp.

◆ operator""_mJ()

template<char... Digits>
constexpr quanta::electro::millijoules quanta::literals::electro_literals::operator""_mJ ( )
constexpr

Literal for millijoules (e.g., 500_mJ).

Definition at line 1527 of file electro.hpp.

◆ operator""_mOhm()

template<char... Digits>
constexpr quanta::electro::milliohms quanta::literals::electro_literals::operator""_mOhm ( )
constexpr

Literal for milliohms (e.g., 50_mOhm).

Definition at line 1429 of file electro.hpp.

◆ operator""_MOhm()

template<char... Digits>
constexpr quanta::electro::megaohms quanta::literals::electro_literals::operator""_MOhm ( )
constexpr

Literal for megaohms (e.g., 1_MOhm).

Definition at line 1447 of file electro.hpp.

◆ operator""_mV()

template<char... Digits>
constexpr quanta::electro::millivolts quanta::literals::electro_literals::operator""_mV ( )
constexpr

Literal for millivolts (e.g., 3300_mV).

Definition at line 1393 of file electro.hpp.

◆ operator""_mW()

template<char... Digits>
constexpr quanta::electro::milliwatts quanta::literals::electro_literals::operator""_mW ( )
constexpr

Literal for milliwatts (e.g., 250_mW).

Definition at line 1485 of file electro.hpp.

◆ operator""_MW()

template<char... Digits>
constexpr quanta::electro::megawatts quanta::literals::electro_literals::operator""_MW ( )
constexpr

Literal for megawatts (e.g., 5_MW).

Definition at line 1503 of file electro.hpp.

◆ operator""_nF()

template<char... Digits>
constexpr quanta::electro::nanofarads quanta::literals::electro_literals::operator""_nF ( )
constexpr

Literal for nanofarads (e.g., 100_nF).

Definition at line 1563 of file electro.hpp.

◆ operator""_nH()

template<char... Digits>
constexpr quanta::electro::nanohenries quanta::literals::electro_literals::operator""_nH ( )
constexpr

Literal for nanohenries (e.g., 100_nH).

Definition at line 1581 of file electro.hpp.

◆ operator""_Ohm()

template<char... Digits>
constexpr quanta::electro::ohms quanta::literals::electro_literals::operator""_Ohm ( )
constexpr

Literal for ohms (e.g., 220_Ohm).

Definition at line 1435 of file electro.hpp.

◆ operator""_pF()

template<char... Digits>
constexpr quanta::electro::picofarads quanta::literals::electro_literals::operator""_pF ( )
constexpr

Literal for picofarads (e.g., 22_pF).

Definition at line 1557 of file electro.hpp.

◆ operator""_uA()

template<char... Digits>
constexpr quanta::electro::microamperes quanta::literals::electro_literals::operator""_uA ( )
constexpr

Literal for microamperes (e.g., 250_uA).

Definition at line 1411 of file electro.hpp.

◆ operator""_uF()

template<char... Digits>
constexpr quanta::electro::microfarads quanta::literals::electro_literals::operator""_uF ( )
constexpr

Literal for microfarads (e.g., 10_uF).

Definition at line 1569 of file electro.hpp.

◆ operator""_uH()

template<char... Digits>
constexpr quanta::electro::microhenries quanta::literals::electro_literals::operator""_uH ( )
constexpr

Literal for microhenries (e.g., 47_uH).

Definition at line 1587 of file electro.hpp.

◆ operator""_uV()

template<char... Digits>
constexpr quanta::electro::microvolts quanta::literals::electro_literals::operator""_uV ( )
constexpr

Literal for microvolts (e.g., 500_uV).

Definition at line 1387 of file electro.hpp.

◆ operator""_uW()

template<char... Digits>
constexpr quanta::electro::microwatts quanta::literals::electro_literals::operator""_uW ( )
constexpr

Literal for microwatts (e.g., 500_uW).

Definition at line 1479 of file electro.hpp.

◆ operator""_V()

template<char... Digits>
constexpr quanta::electro::volts quanta::literals::electro_literals::operator""_V ( )
constexpr

Literal for volts (e.g., 5_V).

Definition at line 1399 of file electro.hpp.

◆ operator""_W()

template<char... Digits>
constexpr quanta::electro::watts quanta::literals::electro_literals::operator""_W ( )
constexpr

Literal for watts (e.g., 60_W).

Definition at line 1491 of file electro.hpp.

◆ operator""_Wh()

template<char... Digits>
constexpr quanta::electro::watt_hours quanta::literals::electro_literals::operator""_Wh ( )
constexpr

Literal for watt-hours (e.g., 100_Wh).

Definition at line 1545 of file electro.hpp.