Dimensioned variables representing electromagnetic quantities. More...
Go to the source code of this file.
Classes | |
struct | util::quantities::units::Coulomb |
struct | util::quantities::units::Volt |
Namespaces | |
util::quantities | |
Types of variables with a unit. | |
util::quantities::units | |
Definitions of actual units. | |
util::quantities::electromagnetism_literals | |
Literal constants for quantities. | |
Typedefs | |
Charge quantities | |
These charge quantities are tied to
| |
template<typename R , typename T = double> | |
using | util::quantities::scaled_coulomb = concepts::scaled_quantity< units::Coulomb, R, T > |
The most generic units::Coulomb -based quantity. More... | |
template<typename T = double> | |
using | util::quantities::coulomb_as = scaled_coulomb< std::ratio< 1 >, T > |
Type of charge stored in coulomb. More... | |
using | util::quantities::coulomb = coulomb_as<> |
Type of charge stored in coulombs, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::millicoulomb_as = concepts::rescale< coulomb_as< T >, std::milli > |
Type of charge stored in millicoulomb. More... | |
using | util::quantities::millicoulomb = millicoulomb_as<> |
Type of charge stored in millicoulomb, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::microcoulomb_as = concepts::rescale< coulomb_as< T >, std::micro > |
Type of charge stored in microcoulomb. More... | |
using | util::quantities::microcoulomb = microcoulomb_as<> |
Type of charge stored in microcoulomb, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::nanocoulomb_as = concepts::rescale< coulomb_as< T >, std::nano > |
Type of charge stored in nanocoulomb. More... | |
using | util::quantities::nanocoulomb = nanocoulomb_as<> |
Type of charge stored in nanocoulomb, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::picocoulomb_as = concepts::rescale< coulomb_as< T >, std::pico > |
Type of charge stored in picocoulomb. More... | |
using | util::quantities::picocoulomb = picocoulomb_as<> |
Type of charge stored in picocoulomb, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::femtocoulomb_as = concepts::rescale< coulomb_as< T >, std::femto > |
Type of charge stored in femtocoulomb. More... | |
using | util::quantities::femtocoulomb = femtocoulomb_as<> |
Type of charge stored in femtocoulomb, in double precision. More... | |
Electric potential quantities | |
These potential quantities are tied to
| |
template<typename R , typename T = double> | |
using | util::quantities::scaled_volt = concepts::scaled_quantity< units::Volt, R, T > |
The most generic units::Volt -based quantity. More... | |
template<typename T = double> | |
using | util::quantities::volt_as = scaled_volt< std::ratio< 1 >, T > |
Type of potential stored in volt. More... | |
using | util::quantities::volt = volt_as<> |
Type of potential stored in volts, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::millivolt_as = concepts::rescale< volt_as< T >, std::milli > |
Type of potential stored in millivolt. More... | |
using | util::quantities::millivolt = millivolt_as<> |
Type of potential stored in millivolt, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::microvolt_as = concepts::rescale< volt_as< T >, std::micro > |
Type of potential stored in microvolt. More... | |
using | util::quantities::microvolt = microvolt_as<> |
Type of potential stored in microvolt, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::kilovolt_as = concepts::rescale< volt_as< T >, std::kilo > |
Type of potential stored in kilovolt. More... | |
using | util::quantities::kilovolt = kilovolt_as<> |
Type of potential stored in kilovolt, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::megavolt_as = concepts::rescale< volt_as< T >, std::mega > |
Type of potential stored in megavolt. More... | |
using | util::quantities::megavolt = megavolt_as<> |
Type of potential stored in megavolt, in double precision. More... | |
template<typename T = double> | |
using | util::quantities::gigavolt_as = concepts::rescale< volt_as< T >, std::giga > |
Type of potential stored in gigavolt. More... | |
using | util::quantities::gigavolt = gigavolt_as<> |
Type of potential stored in gigavolt, in double precision. More... | |
Dimensioned variables representing electromagnetic quantities.
Set of basic quantities related to electromagnetism. Currently, quantities are defined based on the following units:
This is a header-only library.
Definition in file electromagnetism.h.