Files
mp-units/example/alternative_namespaces/length.h
T
Mateusz Pusz 2a56438f1c refactor: file tree with systems defninitions refactored to limit ODR issues
Relates to #32 as with this commit we created something like modules for derived quantities
2020-09-11 18:11:25 +02:00

89 lines
3.0 KiB
C++

#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/imperial/imperial.h>
#include <units/physical/si/international/international.h>
#include <units/physical/si/typographic/typographic.h>
#include <units/physical/si/us/us.h>
#include <units/physical/si/iau/iau.h>
namespace units{
namespace experimental{
namespace length {
template<typename Rep = double>
using m = units::physical::si::length<units::physical::si::metre, Rep>;
template<typename Rep = double>
using mm = units::physical::si::length<units::physical::si::millimetre, Rep>;
template<typename Rep = double>
using fm = units::physical::si::length<units::physical::si::femtometre, Rep>;
template<typename Rep = double>
using km = units::physical::si::length<units::physical::si::kilometre, Rep>;
template<typename Rep = double>
using AU = units::physical::si::length<units::physical::si::astronomical_unit, Rep>;
template<typename Rep = double>
using in = units::physical::si::length<units::physical::si::international::inch, Rep>;
template<typename Rep = double>
using angstrom = units::physical::si::length<units::physical::si::iau::angstrom, Rep>;
template<typename Rep = double>
using ch = units::physical::si::length<units::physical::si::imperial::chain, Rep>;
template<typename Rep = double>
using fathom = units::physical::si::length<units::physical::si::international::fathom, Rep>;
template<typename Rep = double>
using fathom_us = units::physical::si::length<units::physical::si::us::fathom, Rep>;
template<typename Rep = double>
using ft = units::physical::si::length<units::physical::si::international::foot, Rep>;
template<typename Rep = double>
using ft_us = units::physical::si::length<units::physical::si::us::foot, Rep>;
template<typename Rep = double>
using ly = units::physical::si::length<units::physical::si::iau::light_year, Rep>;
template<typename Rep = double>
using mi = units::physical::si::length<units::physical::si::international::mile, Rep>;
template<typename Rep = double>
using mi_naut = units::physical::si::length<units::physical::si::international::nautical_mile, Rep>;
template<typename Rep = double>
using pc = units::physical::si::length<units::physical::si::iau::parsec, Rep>;
template<typename Rep = double>
using pica_comp = units::physical::si::length<units::physical::si::typographic::pica_comp, Rep>;
template<typename Rep = double>
using pica_prn = units::physical::si::length<units::physical::si::typographic::pica_prn, Rep>;
template<typename Rep = double>
using point_comp = units::physical::si::length<units::physical::si::typographic::point_comp, Rep>;
template<typename Rep = double>
using point_prn = units::physical::si::length<units::physical::si::typographic::point_prn, Rep>;
template<typename Rep = double>
using rd = units::physical::si::length<units::physical::si::imperial::rod, Rep>;
template<typename Rep = double>
using yd = units::physical::si::length<units::physical::si::international::yard, Rep>;
} // namespace length
}} // units::experimental