Physical units put in the physical namespace (I am sorry)
This commit is contained in:
1 parent
771a9a1551
commit
7e935a4108
117 files changed
+352
-349
No files matched your search
@@ -9,7 +9,7 @@ namespace experimental{
|
||||
namespace acceleration {
|
||||
|
||||
template<typename Rep = double>
|
||||
using m_per_s2 = units::si::acceleration<units::si::metre_per_second_sq, Rep>;
|
||||
using m_per_s2 = units::physical::si::acceleration<units::physical::si::metre_per_second_sq, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
constexpr m_per_s2<Rep> g{static_cast<Rep>(9.80665)};
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
namespace area {
|
||||
|
||||
template<typename Rep = double>
|
||||
using m2 = units::si::area<units::si::square_metre, Rep>;
|
||||
using m2 = units::physical::si::area<units::physical::si::square_metre, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using fm2 = units::si::area<units::si::square_femtometre, Rep>;
|
||||
using fm2 = units::physical::si::area<units::physical::si::square_femtometre, Rep>;
|
||||
|
||||
} // namespace area
|
||||
@@ -52,7 +52,7 @@ struct Box {
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace units::si::literals;
|
||||
using namespace units::physical::si::literals;
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace units::experimental;
|
||||
using namespace units::si::literals;
|
||||
using namespace units::physical::si::literals;
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include "./area.h"
|
||||
#include "./units_str.h"
|
||||
|
||||
using namespace units::si::literals;
|
||||
using namespace units::international;
|
||||
using namespace units::physical::si::literals;
|
||||
using namespace units::physical::international;
|
||||
using namespace units::experimental;
|
||||
|
||||
void simple_quantities()
|
||||
|
||||
@@ -40,7 +40,7 @@ inline constexpr std::common_type_t<typename Target::rep, typename Source::rep>
|
||||
|
||||
} // namespace
|
||||
|
||||
using namespace units::si::literals;
|
||||
using namespace units::physical::si::literals;
|
||||
using namespace units::experimental;
|
||||
|
||||
int main()
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace experimental{
|
||||
namespace density {
|
||||
|
||||
template<typename Rep = double>
|
||||
using kg_per_m3 = units::si::density<units::si::kilogram_per_metre_cub, Rep>;
|
||||
using kg_per_m3 = units::physical::si::density<units::physical::si::kilogram_per_metre_cub, Rep>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace experimental{
|
||||
namespace force {
|
||||
|
||||
template<typename Rep = double>
|
||||
using N = units::si::force<units::si::newton, Rep>;
|
||||
using N = units::physical::si::force<units::physical::si::newton, Rep>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -15,70 +15,70 @@ namespace experimental{
|
||||
namespace length {
|
||||
|
||||
template<typename Rep = double>
|
||||
using m = units::si::length<units::si::metre, Rep>;
|
||||
using m = units::physical::si::length<units::physical::si::metre, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using mm = units::si::length<units::si::millimetre, Rep>;
|
||||
using mm = units::physical::si::length<units::physical::si::millimetre, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using fm = units::si::length<units::si::femtometre, Rep>;
|
||||
using fm = units::physical::si::length<units::physical::si::femtometre, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using km = units::si::length<units::si::kilometre, Rep>;
|
||||
using km = units::physical::si::length<units::physical::si::kilometre, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using AU = units::si::length<units::si::astronomical_unit, Rep>;
|
||||
using AU = units::physical::si::length<units::physical::si::astronomical_unit, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using in = units::si::length<units::international::inch, Rep>;
|
||||
using in = units::physical::si::length<units::physical::international::inch, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using angstrom = units::si::length<units::iau::angstrom, Rep>;
|
||||
using angstrom = units::physical::si::length<units::physical::iau::angstrom, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using ch = units::si::length<units::imperial::chain, Rep>;
|
||||
using ch = units::physical::si::length<units::physical::imperial::chain, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using fathom = units::si::length<units::international::fathom, Rep>;
|
||||
using fathom = units::physical::si::length<units::physical::international::fathom, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using fathom_us = units::si::length<units::us::fathom, Rep>;
|
||||
using fathom_us = units::physical::si::length<units::physical::us::fathom, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using ft = units::si::length<units::international::foot, Rep>;
|
||||
using ft = units::physical::si::length<units::physical::international::foot, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using ft_us = units::si::length<units::us::foot, Rep>;
|
||||
using ft_us = units::physical::si::length<units::physical::us::foot, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using ly = units::si::length<units::iau::light_year, Rep>;
|
||||
using ly = units::physical::si::length<units::physical::iau::light_year, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using mi = units::si::length<units::international::mile, Rep>;
|
||||
using mi = units::physical::si::length<units::physical::international::mile, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using mi_naut = units::si::length<units::international::nautical_mile, Rep>;
|
||||
using mi_naut = units::physical::si::length<units::physical::international::nautical_mile, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using pc = units::si::length<units::iau::parsec, Rep>;
|
||||
using pc = units::physical::si::length<units::physical::iau::parsec, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using pica_comp = units::si::length<units::typographic::pica_comp, Rep>;
|
||||
using pica_comp = units::physical::si::length<units::physical::typographic::pica_comp, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using pica_prn = units::si::length<units::typographic::pica_prn, Rep>;
|
||||
using pica_prn = units::physical::si::length<units::physical::typographic::pica_prn, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using point_comp = units::si::length<units::typographic::point_comp, Rep>;
|
||||
using point_comp = units::physical::si::length<units::physical::typographic::point_comp, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using point_prn = units::si::length<units::typographic::point_prn, Rep>;
|
||||
using point_prn = units::physical::si::length<units::physical::typographic::point_prn, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using rd = units::si::length<units::imperial::rod, Rep>;
|
||||
using rd = units::physical::si::length<units::physical::imperial::rod, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using yd = units::si::length<units::international::yard, Rep>;
|
||||
using yd = units::physical::si::length<units::physical::international::yard, Rep>;
|
||||
|
||||
|
||||
} // namespace length
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace experimental{
|
||||
namespace mass {
|
||||
|
||||
template<typename Rep = double>
|
||||
using kg = units::si::mass<units::si::kilogram, Rep>;
|
||||
using kg = units::physical::si::mass<units::physical::si::kilogram, Rep>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
namespace q_time {
|
||||
|
||||
template<typename Rep = double>
|
||||
using s = units::si::time<units::si::second, Rep>;
|
||||
using s = units::physical::si::time<units::physical::si::second, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using ms = units::si::time<units::si::millisecond, Rep>;
|
||||
using ms = units::physical::si::time<units::physical::si::millisecond, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using min = units::si::time<units::si::minute, Rep>;
|
||||
using min = units::physical::si::time<units::physical::si::minute, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using h = units::si::time<units::si::hour, Rep>;
|
||||
using h = units::physical::si::time<units::physical::si::hour, Rep>;
|
||||
|
||||
} // namespace time
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
using namespace units::experimental;
|
||||
using namespace units::si::literals;
|
||||
using namespace units::physical::si::literals;
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -10,19 +10,19 @@ namespace experimental{
|
||||
namespace voltage {
|
||||
|
||||
template<typename Rep = double>
|
||||
using V = units::si::voltage<units::si::volt, Rep>;
|
||||
using V = units::physical::si::voltage<units::physical::si::volt, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using mV = units::si::voltage<units::si::millivolt, Rep>;
|
||||
using mV = units::physical::si::voltage<units::physical::si::millivolt, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using uV = units::si::voltage<units::si::microvolt, Rep>;
|
||||
using uV = units::physical::si::voltage<units::physical::si::microvolt, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using nV = units::si::voltage<units::si::nanovolt, Rep>;
|
||||
using nV = units::physical::si::voltage<units::physical::si::nanovolt, Rep>;
|
||||
|
||||
template<typename Rep = double>
|
||||
using pV = units::si::voltage<units::si::picovolt, Rep>;
|
||||
using pV = units::physical::si::voltage<units::physical::si::picovolt, Rep>;
|
||||
|
||||
} // namespace voltage
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace experimental{
|
||||
namespace volume {
|
||||
|
||||
template<typename Rep = double>
|
||||
using m3 = units::si::volume<units::si::cubic_metre, Rep>;
|
||||
using m3 = units::physical::si::volume<units::physical::si::cubic_metre, Rep>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user