|
quanta 0.1.0
Type-safe units for temperature, frequency, electrical and spatial quantities, modeled after std::chrono
|
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). | |
|
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.
|
constexpr |
Literal for amperes (e.g., 2_A).
Definition at line 1423 of file electro.hpp.
|
constexpr |
Literal for ampere-hours (e.g., 2_Ah).
Definition at line 1521 of file electro.hpp.
|
constexpr |
Literal for coulombs (e.g., 10_C).
Definition at line 1509 of file electro.hpp.
|
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.
|
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.
|
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.
|
constexpr |
Literal for decibels (e.g., 20_dB).
Definition at line 900 of file decibel.hpp.
|
constexpr |
Literal for dBm (e.g., 20_dBm, or -73_dBm).
Definition at line 912 of file decibel.hpp.
|
constexpr |
Literal for dBmV (e.g., 40_dBmV).
Definition at line 936 of file decibel.hpp.
|
constexpr |
Literal for dBµV (e.g., 120_dBuV).
Definition at line 942 of file decibel.hpp.
|
constexpr |
Literal for dBV (e.g., 6_dBV).
Definition at line 930 of file decibel.hpp.
|
constexpr |
Literal for dBW (e.g., 10_dBW).
Definition at line 924 of file decibel.hpp.
|
constexpr |
Literal for farads (e.g., 1_F).
Definition at line 1575 of file electro.hpp.
|
constexpr |
Literal for henries (e.g., 1_H).
Definition at line 1599 of file electro.hpp.
|
constexpr |
Literal for joules (e.g., 100_J).
Definition at line 1533 of file electro.hpp.
|
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.
|
constexpr |
Literal for kilojoules (e.g., 4_kJ).
Definition at line 1539 of file electro.hpp.
|
constexpr |
Literal for kiloohms (e.g., 10_kOhm).
Definition at line 1441 of file electro.hpp.
|
constexpr |
Literal for kilovolts (e.g., 11_kV).
Definition at line 1405 of file electro.hpp.
|
constexpr |
Literal for kilowatts (e.g., 2_kW).
Definition at line 1497 of file electro.hpp.
|
constexpr |
Literal for kilowatt-hours (e.g., 10_kWh).
Definition at line 1551 of file electro.hpp.
|
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.
|
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.
|
constexpr |
Literal for milliamperes (e.g., 150_mA).
Definition at line 1417 of file electro.hpp.
|
constexpr |
Literal for milliampere-hours (e.g., 2000_mAh).
Definition at line 1515 of file electro.hpp.
|
constexpr |
Literal for millihenries (e.g., 10_mH).
Definition at line 1593 of file electro.hpp.
|
constexpr |
Literal for millijoules (e.g., 500_mJ).
Definition at line 1527 of file electro.hpp.
|
constexpr |
Literal for milliohms (e.g., 50_mOhm).
Definition at line 1429 of file electro.hpp.
|
constexpr |
Literal for megaohms (e.g., 1_MOhm).
Definition at line 1447 of file electro.hpp.
|
constexpr |
Literal for millivolts (e.g., 3300_mV).
Definition at line 1393 of file electro.hpp.
|
constexpr |
Literal for milliwatts (e.g., 250_mW).
Definition at line 1485 of file electro.hpp.
|
constexpr |
Literal for megawatts (e.g., 5_MW).
Definition at line 1503 of file electro.hpp.
|
constexpr |
Literal for nanofarads (e.g., 100_nF).
Definition at line 1563 of file electro.hpp.
|
constexpr |
Literal for nanohenries (e.g., 100_nH).
Definition at line 1581 of file electro.hpp.
|
constexpr |
Literal for ohms (e.g., 220_Ohm).
Definition at line 1435 of file electro.hpp.
|
constexpr |
Literal for picofarads (e.g., 22_pF).
Definition at line 1557 of file electro.hpp.
|
constexpr |
Literal for microamperes (e.g., 250_uA).
Definition at line 1411 of file electro.hpp.
|
constexpr |
Literal for microfarads (e.g., 10_uF).
Definition at line 1569 of file electro.hpp.
|
constexpr |
Literal for microhenries (e.g., 47_uH).
Definition at line 1587 of file electro.hpp.
|
constexpr |
Literal for microvolts (e.g., 500_uV).
Definition at line 1387 of file electro.hpp.
|
constexpr |
Literal for microwatts (e.g., 500_uW).
Definition at line 1479 of file electro.hpp.
|
constexpr |
Literal for volts (e.g., 5_V).
Definition at line 1399 of file electro.hpp.
|
constexpr |
Literal for watts (e.g., 60_W).
Definition at line 1491 of file electro.hpp.
|
constexpr |
Literal for watt-hours (e.g., 100_Wh).
Definition at line 1545 of file electro.hpp.