Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::Units::Length Namespace Reference

Typedefs

template<class Ratio = std::ratio<1>>
using Length = Unit<UnitKind::Length, Ratio>
 
using Millimeter = Length<std::milli>
 
using Centimeter = Length<std::centi>
 
using Decimeter = Length<std::deci>
 
using Meter = Length<>
 
using Kilometer = Length<std::kilo>
 

Functions

template<class ToLength , class FromLength >
ToLength length_cast (FromLength const &from)
 
constexpr auto operator""_mm (long double n)
 
constexpr auto operator""_cm (long double n)
 
constexpr auto operator""_dm (long double n)
 
constexpr auto operator""_m (long double n)
 
constexpr auto operator""_km (long double n)
 
constexpr auto operator""_mm (unsigned long long n)
 
constexpr auto operator""_cm (unsigned long long n)
 
constexpr auto operator""_dm (unsigned long long n)
 
constexpr auto operator""_m (unsigned long long n)
 
constexpr auto operator""_km (unsigned long long n)
 

Typedef Documentation

◆ Centimeter

Definition at line 46 of file Length.h.

◆ Decimeter

Definition at line 47 of file Length.h.

◆ Kilometer

Definition at line 49 of file Length.h.

◆ Length

template<class Ratio = std::ratio<1>>
using Boardcore::Units::Length::Length = Unit<UnitKind::Length, Ratio>

Definition at line 37 of file Length.h.

◆ Meter

Definition at line 48 of file Length.h.

◆ Millimeter

Definition at line 45 of file Length.h.

Function Documentation

◆ length_cast()

template<class ToLength , class FromLength >
ToLength Boardcore::Units::Length::length_cast ( FromLength const & from)

Definition at line 40 of file Length.h.

◆ operator""_cm() [1/2]

constexpr auto Boardcore::Units::Length::operator""_cm ( long double n)
constexpr

Definition at line 56 of file Length.h.

◆ operator""_cm() [2/2]

constexpr auto Boardcore::Units::Length::operator""_cm ( unsigned long long n)
constexpr

Definition at line 77 of file Length.h.

◆ operator""_dm() [1/2]

constexpr auto Boardcore::Units::Length::operator""_dm ( long double n)
constexpr

Definition at line 60 of file Length.h.

◆ operator""_dm() [2/2]

constexpr auto Boardcore::Units::Length::operator""_dm ( unsigned long long n)
constexpr

Definition at line 81 of file Length.h.

◆ operator""_km() [1/2]

constexpr auto Boardcore::Units::Length::operator""_km ( long double n)
constexpr

Definition at line 68 of file Length.h.

◆ operator""_km() [2/2]

constexpr auto Boardcore::Units::Length::operator""_km ( unsigned long long n)
constexpr

Definition at line 89 of file Length.h.

◆ operator""_m() [1/2]

constexpr auto Boardcore::Units::Length::operator""_m ( long double n)
constexpr

Definition at line 64 of file Length.h.

◆ operator""_m() [2/2]

constexpr auto Boardcore::Units::Length::operator""_m ( unsigned long long n)
constexpr

Definition at line 85 of file Length.h.

◆ operator""_mm() [1/2]

constexpr auto Boardcore::Units::Length::operator""_mm ( long double n)
constexpr

Definition at line 52 of file Length.h.

◆ operator""_mm() [2/2]

constexpr auto Boardcore::Units::Length::operator""_mm ( unsigned long long n)
constexpr

Definition at line 73 of file Length.h.