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

Typedefs

template<class Ratio = std::ratio<1>>
using Pressure = Unit<UnitKind::Pressure, Ratio>
 
using Pascal = Pressure<>
 
using Bar = Pressure<std::ratio<100000>>
 
using Atm = Pressure<std::ratio<101325>>
 

Functions

template<class ToPressure , class FromPressure >
ToPressure pressure_cast (FromPressure const &from)
 
constexpr auto operator""_pa (long double n)
 
constexpr auto operator""_bar (long double n)
 
constexpr auto operator""_atm (long double n)
 
constexpr auto operator""_pa (unsigned long long n)
 
constexpr auto operator""_bar (unsigned long long n)
 
constexpr auto operator""_atm (unsigned long long n)
 

Typedef Documentation

◆ Atm

using Boardcore::Units::Pressure::Atm = Pressure<std::ratio<101325>>

Definition at line 47 of file Pressure.h.

◆ Bar

using Boardcore::Units::Pressure::Bar = Pressure<std::ratio<100000>>

Definition at line 46 of file Pressure.h.

◆ Pascal

Definition at line 45 of file Pressure.h.

◆ Pressure

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

Definition at line 37 of file Pressure.h.

Function Documentation

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

constexpr auto Boardcore::Units::Pressure::operator""_atm ( long double n)
constexpr

Definition at line 58 of file Pressure.h.

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

constexpr auto Boardcore::Units::Pressure::operator""_atm ( unsigned long long n)
constexpr

Definition at line 71 of file Pressure.h.

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

constexpr auto Boardcore::Units::Pressure::operator""_bar ( long double n)
constexpr

Definition at line 54 of file Pressure.h.

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

constexpr auto Boardcore::Units::Pressure::operator""_bar ( unsigned long long n)
constexpr

Definition at line 67 of file Pressure.h.

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

constexpr auto Boardcore::Units::Pressure::operator""_pa ( long double n)
constexpr

Definition at line 50 of file Pressure.h.

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

constexpr auto Boardcore::Units::Pressure::operator""_pa ( unsigned long long n)
constexpr

Definition at line 63 of file Pressure.h.

◆ pressure_cast()

template<class ToPressure , class FromPressure >
ToPressure Boardcore::Units::Pressure::pressure_cast ( FromPressure const & from)

Definition at line 40 of file Pressure.h.