xo-unit: refactor: ++ docs
This commit is contained in:
parent
d767675dd9
commit
5fd6bd3148
11 changed files with 225 additions and 151 deletions
|
|
@ -374,61 +374,60 @@ namespace xo {
|
|||
|
||||
// ----- mass -----
|
||||
|
||||
constexpr auto picogram = natural_unit<std::int64_t>::from_bu(bu::picogram);
|
||||
constexpr auto nanogram = natural_unit<std::int64_t>::from_bu(bu::nanogram);
|
||||
constexpr auto microgram = natural_unit<std::int64_t>::from_bu(bu::microgram);
|
||||
constexpr auto milligram = natural_unit<std::int64_t>::from_bu(bu::milligram);
|
||||
constexpr auto gram = natural_unit<std::int64_t>::from_bu(bu::gram);
|
||||
constexpr auto kilogram = natural_unit<std::int64_t>::from_bu(bu::kilogram);
|
||||
constexpr auto tonne = natural_unit<std::int64_t>::from_bu(bu::tonne);
|
||||
constexpr auto kilotonne = natural_unit<std::int64_t>::from_bu(bu::kilotonne);
|
||||
constexpr auto megatonne = natural_unit<std::int64_t>::from_bu(bu::megatonne);
|
||||
constexpr auto gigatonne = natural_unit<std::int64_t>::from_bu(bu::gigatonne);
|
||||
constexpr auto picogram = natural_unit<std::int64_t>::from_bu(detail::bu::picogram);
|
||||
constexpr auto nanogram = natural_unit<std::int64_t>::from_bu(detail::bu::nanogram);
|
||||
constexpr auto microgram = natural_unit<std::int64_t>::from_bu(detail::bu::microgram);
|
||||
constexpr auto milligram = natural_unit<std::int64_t>::from_bu(detail::bu::milligram);
|
||||
constexpr auto gram = natural_unit<std::int64_t>::from_bu(detail::bu::gram);
|
||||
constexpr auto kilogram = natural_unit<std::int64_t>::from_bu(detail::bu::kilogram);
|
||||
constexpr auto tonne = natural_unit<std::int64_t>::from_bu(detail::bu::tonne);
|
||||
constexpr auto kilotonne = natural_unit<std::int64_t>::from_bu(detail::bu::kilotonne);
|
||||
constexpr auto megatonne = natural_unit<std::int64_t>::from_bu(detail::bu::megatonne);
|
||||
constexpr auto gigatonne = natural_unit<std::int64_t>::from_bu(detail::bu::gigatonne);
|
||||
|
||||
// ----- distance -----
|
||||
|
||||
constexpr auto picometer = natural_unit<std::int64_t>::from_bu(bu::picometer);
|
||||
constexpr auto nanometer = natural_unit<std::int64_t>::from_bu(bu::nanometer);
|
||||
constexpr auto micrometer = natural_unit<std::int64_t>::from_bu(bu::micrometer);
|
||||
constexpr auto millimeter = natural_unit<std::int64_t>::from_bu(bu::millimeter);
|
||||
constexpr auto meter = natural_unit<std::int64_t>::from_bu(bu::meter);
|
||||
constexpr auto kilometer = natural_unit<std::int64_t>::from_bu(bu::kilometer);
|
||||
constexpr auto megameter = natural_unit<std::int64_t>::from_bu(bu::megameter);
|
||||
constexpr auto gigameter = natural_unit<std::int64_t>::from_bu(bu::gigameter);
|
||||
constexpr auto lightsecond = natural_unit<std::int64_t>::from_bu(bu::lightsecond);
|
||||
constexpr auto astronomicalunit = natural_unit<std::int64_t>::from_bu(bu::astronomicalunit);
|
||||
constexpr auto picometer = natural_unit<std::int64_t>::from_bu(detail::bu::picometer);
|
||||
constexpr auto nanometer = natural_unit<std::int64_t>::from_bu(detail::bu::nanometer);
|
||||
constexpr auto micrometer = natural_unit<std::int64_t>::from_bu(detail::bu::micrometer);
|
||||
constexpr auto millimeter = natural_unit<std::int64_t>::from_bu(detail::bu::millimeter);
|
||||
constexpr auto meter = natural_unit<std::int64_t>::from_bu(detail::bu::meter);
|
||||
constexpr auto kilometer = natural_unit<std::int64_t>::from_bu(detail::bu::kilometer);
|
||||
constexpr auto megameter = natural_unit<std::int64_t>::from_bu(detail::bu::megameter);
|
||||
constexpr auto gigameter = natural_unit<std::int64_t>::from_bu(detail::bu::gigameter);
|
||||
constexpr auto lightsecond = natural_unit<std::int64_t>::from_bu(detail::bu::lightsecond);
|
||||
constexpr auto astronomicalunit = natural_unit<std::int64_t>::from_bu(detail::bu::astronomicalunit);
|
||||
|
||||
constexpr auto inch = natural_unit<std::int64_t>::from_bu(bu::inch);
|
||||
constexpr auto foot = natural_unit<std::int64_t>::from_bu(bu::foot);
|
||||
constexpr auto yard = natural_unit<std::int64_t>::from_bu(bu::yard);
|
||||
constexpr auto mile = natural_unit<std::int64_t>::from_bu(bu::mile);
|
||||
constexpr auto inch = natural_unit<std::int64_t>::from_bu(detail::bu::inch);
|
||||
constexpr auto foot = natural_unit<std::int64_t>::from_bu(detail::bu::foot);
|
||||
constexpr auto yard = natural_unit<std::int64_t>::from_bu(detail::bu::yard);
|
||||
constexpr auto mile = natural_unit<std::int64_t>::from_bu(detail::bu::mile);
|
||||
|
||||
// ----- time -----
|
||||
|
||||
constexpr auto picosecond = natural_unit<std::int64_t>::from_bu(bu::picosecond);
|
||||
constexpr auto nanosecond = natural_unit<std::int64_t>::from_bu(bu::nanosecond);
|
||||
constexpr auto microsecond = natural_unit<std::int64_t>::from_bu(bu::microsecond);
|
||||
constexpr auto millisecond = natural_unit<std::int64_t>::from_bu(bu::millisecond);
|
||||
constexpr auto second = natural_unit<std::int64_t>::from_bu(bu::second);
|
||||
constexpr auto minute = natural_unit<std::int64_t>::from_bu(bu::minute);
|
||||
constexpr auto hour = natural_unit<std::int64_t>::from_bu(bu::hour);
|
||||
constexpr auto day = natural_unit<std::int64_t>::from_bu(bu::day);
|
||||
constexpr auto week = natural_unit<std::int64_t>::from_bu(bu::week);
|
||||
constexpr auto month = natural_unit<std::int64_t>::from_bu(bu::month);
|
||||
constexpr auto year = natural_unit<std::int64_t>::from_bu(bu::year);
|
||||
constexpr auto year250 = natural_unit<std::int64_t>::from_bu(bu::year250);
|
||||
constexpr auto year360 = natural_unit<std::int64_t>::from_bu(bu::year360);
|
||||
constexpr auto year365 = natural_unit<std::int64_t>::from_bu(bu::year365);
|
||||
constexpr auto picosecond = natural_unit<std::int64_t>::from_bu(detail::bu::picosecond);
|
||||
constexpr auto nanosecond = natural_unit<std::int64_t>::from_bu(detail::bu::nanosecond);
|
||||
constexpr auto microsecond = natural_unit<std::int64_t>::from_bu(detail::bu::microsecond);
|
||||
constexpr auto millisecond = natural_unit<std::int64_t>::from_bu(detail::bu::millisecond);
|
||||
constexpr auto second = natural_unit<std::int64_t>::from_bu(detail::bu::second);
|
||||
constexpr auto minute = natural_unit<std::int64_t>::from_bu(detail::bu::minute);
|
||||
constexpr auto hour = natural_unit<std::int64_t>::from_bu(detail::bu::hour);
|
||||
constexpr auto day = natural_unit<std::int64_t>::from_bu(detail::bu::day);
|
||||
constexpr auto week = natural_unit<std::int64_t>::from_bu(detail::bu::week);
|
||||
constexpr auto month = natural_unit<std::int64_t>::from_bu(detail::bu::month);
|
||||
constexpr auto year = natural_unit<std::int64_t>::from_bu(detail::bu::year);
|
||||
constexpr auto year250 = natural_unit<std::int64_t>::from_bu(detail::bu::year250);
|
||||
constexpr auto year360 = natural_unit<std::int64_t>::from_bu(detail::bu::year360);
|
||||
constexpr auto year365 = natural_unit<std::int64_t>::from_bu(detail::bu::year365);
|
||||
|
||||
constexpr auto currency = natural_unit<std::int64_t>::from_bu(bu::currency);
|
||||
constexpr auto currency = natural_unit<std::int64_t>::from_bu(detail::bu::currency);
|
||||
|
||||
constexpr auto price = natural_unit<std::int64_t>::from_bu(bu::price);
|
||||
constexpr auto price = natural_unit<std::int64_t>::from_bu(detail::bu::price);
|
||||
|
||||
constexpr auto volatility_30d = natural_unit<std::int64_t>::from_bu(bu::month, power_ratio_type(-1,2));
|
||||
constexpr auto volatility_250d = natural_unit<std::int64_t>::from_bu(bu::year250, power_ratio_type(-1,2));
|
||||
constexpr auto volatility_360d = natural_unit<std::int64_t>::from_bu(bu::year360, power_ratio_type(-1,2));
|
||||
constexpr auto volatility_365d = natural_unit<std::int64_t>::from_bu(bu::year365, power_ratio_type(-1,2));
|
||||
} /*namespace nu*/
|
||||
constexpr auto volatility_30d = natural_unit<std::int64_t>::from_bu(detail::bu::month, power_ratio_type(-1,2));
|
||||
constexpr auto volatility_250d = natural_unit<std::int64_t>::from_bu(detail::bu::year250, power_ratio_type(-1,2));
|
||||
constexpr auto volatility_360d = natural_unit<std::int64_t>::from_bu(detail::bu::year360, power_ratio_type(-1,2));
|
||||
constexpr auto volatility_365d = natural_unit<std::int64_t>::from_bu(detail::bu::year365, power_ratio_type(-1,2)); } /*namespace nu*/
|
||||
} /*namespace qty*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue