|
template<typename int_type> |
constexpr fraction< int_type > | jau::abs (const fraction< int_type > &rhs) noexcept |
| Returns the absolute fraction.
|
|
constexpr fraction_timespec | jau::abs (const fraction_timespec &rhs) noexcept |
| Returns the absolute fraction_timespec.
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::days (86 '400l, 1lu) |
| days is 86400/1
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::giga (1 '000 '000 '000l, 1lu) |
| giga is 10^9
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::hours (3 '600l, 1lu) |
| hours is 3660/1
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::kilo (1 '000l, 1lu) |
| kilo is 10^3
|
|
template<typename int_type> |
constexpr const fraction< int_type > & | jau::max (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
| Return the maximum of the two given fractions.
|
|
constexpr const fraction_timespec & | jau::max (const fraction_timespec &lhs, const fraction_timespec &rhs) noexcept |
| Return the maximum of the two given fraction_timespec.
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::mega (1 '000 '000l, 1lu) |
| mega is 10^6
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::micro (1l, 1 '000 '000lu) |
| micro is 10^-6
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::milli (1l, 1 '000lu) |
| milli is 10^-3
|
|
template<typename int_type> |
constexpr const fraction< int_type > & | jau::min (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
| Return the minimum of the two given fractions.
|
|
constexpr const fraction_timespec & | jau::min (const fraction_timespec &lhs, const fraction_timespec &rhs) noexcept |
| Return the minimum of the two given fraction_timespec.
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::minutes (60l, 1lu) |
| minutes is 60/1
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::nano (1l, 1 '000 '000 '000lu) |
| nano is 10^-9
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::one (1l, 1lu) |
| one is 10^0 or 1/1
|
|
template<typename int_type> |
constexpr bool | jau::operator!= (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_d (unsigned long long int __d) |
| Literal for fractions_i64::days.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_G (unsigned long long int __G) |
| Literal for fractions_i64::giga.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_h (unsigned long long int __h) |
| Literal for fractions_i64::hours.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_k (unsigned long long int __k) |
| Literal for fractions_i64::kilo.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_M (unsigned long long int __M) |
| Literal for fractions_i64::mega.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_m (unsigned long long int __m) |
| Literal for fractions_i64::milli.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_min (unsigned long long int __min) |
| Literal for fractions_i64::minutes.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_ms (unsigned long long int __ms) |
| Literal for fractions_i64::milli.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_n (unsigned long long int __n) |
| Literal for fractions_i64::nano.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_ns (unsigned long long int __ns) |
| Literal for fractions_i64::nano.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_one (unsigned long long int __one) |
| Literal for fractions_i64::one.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_p (unsigned long long int __p) |
| Literal for fractions_i64::pico.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_s (unsigned long long int __s) |
| Literal for fractions_i64::seconds.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_T (unsigned long long int __T) |
| Literal for fractions_i64::tera.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_u (unsigned long long int __u) |
| Literal for fractions_i64::micro.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_us (unsigned long long int __us) |
| Literal for fractions_i64::micro.
|
|
constexpr fraction_i64 | jau::fractions_i64_literals::operator""_y (unsigned long long int __y) |
| Literal for fractions_i64::years.
|
|
template<typename int_type> |
constexpr fraction< int_type > | jau::operator* (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
| Returns product of two fraction.
|
|
template<typename int_type> |
constexpr fraction< int_type > | jau::operator* (const fraction< int_type > &lhs, const int_type &rhs) noexcept |
| Returns multiplication of fraction with scalar.
|
|
constexpr fraction_timespec | jau::operator* (const fraction_timespec &lhs, const int64_t rhs) noexcept |
| Returns product of fraction_timespec * scalar.
|
|
constexpr fraction_timespec | jau::operator* (const int64_t lhs, const fraction_timespec &rhs) noexcept |
| Returns product of scalar * fraction_timespec.
|
|
template<typename int_type> |
constexpr fraction< int_type > | jau::operator* (const int_type &lhs, const fraction< int_type > &rhs) noexcept |
| Returns multiplication of fraction with scalar.
|
|
template<typename int_type> |
constexpr fraction< int_type > | jau::operator+ (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
| Returns sum of two fraction.
|
|
constexpr fraction_timespec | jau::operator+ (const fraction_timespec &lhs, const fraction_timespec &rhs) noexcept |
| Returns sum of two fraction_timespec.
|
|
template<typename int_type> |
constexpr fraction< int_type > | jau::operator- (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
| Returns difference of two fraction.
|
|
constexpr fraction_timespec | jau::operator- (const fraction_timespec &lhs, const fraction_timespec &rhs) noexcept |
| Returns difference of two fraction_timespec.
|
|
template<typename int_type> |
constexpr fraction< int_type > | jau::operator/ (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
| Returns division of two fraction.
|
|
template<typename int_type> |
constexpr fraction< int_type > | jau::operator/ (const fraction< int_type > &lhs, const int_type &rhs) noexcept |
| Returns division of fraction with scalar.
|
|
constexpr fraction_timespec | jau::operator/ (const fraction_timespec &lhs, const int64_t rhs) noexcept |
| Returns fraction of fraction_timespec / scalar.
|
|
constexpr fraction_timespec | jau::operator/ (const int64_t lhs, const fraction_timespec &rhs) noexcept |
| Returns fraction of scalar / fraction_timespec.
|
|
template<typename int_type> |
constexpr fraction< int_type > | jau::operator/ (const int_type &lhs, const fraction< int_type > &rhs) noexcept |
| Returns division of fraction with scalar.
|
|
template<typename int_type> |
constexpr bool | jau::operator< (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
|
template<typename int_type> |
std::ostream & | std::operator<< (std::ostream &os, const jau::fraction< int_type > &v) noexcept |
| Output stream operator for jau::fraction.
|
|
std::ostream & | std::operator<< (std::ostream &os, const jau::fraction_timespec &v) noexcept |
| Output stream operator for jau::fraction_timespec.
|
|
template<typename int_type> |
constexpr bool | jau::operator<= (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
|
template<typename int_type> |
constexpr bool | jau::operator== (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
|
template<typename int_type> |
constexpr bool | jau::operator> (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
|
template<typename int_type> |
constexpr bool | jau::operator>= (const fraction< int_type > &lhs, const fraction< int_type > &rhs) noexcept |
|
constexpr const jau::fraction_i64 | jau::fractions_i64::pico (1l, 1 '000 '000 '000 '000lu) |
| pico is 10^-12
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::seconds (1l, 1lu) |
| seconds is 1/1
|
|
template<typename int_type> |
constexpr snsize_t | jau::sign (const fraction< int_type > &rhs) noexcept |
| Returns the value of the sign function applied to numerator.
|
|
constexpr snsize_t | jau::sign (const fraction_timespec &rhs) noexcept |
| Returns the value of the sign function applied to tv_sec.
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::tera (1 '000 '000 '000 '000l, 1lu) |
| tera is 10^12
|
|
bool | jau::to_fraction_i64 (fraction_i64 &result, const std::string &value, const fraction_i64 &min_allowed, const fraction_i64 &max_allowed) noexcept |
| Stores the fraction_i64 value of the given string value in format <num>/<denom> , which may contain whitespace.
|
|
template<typename int_type> |
std::string | jau::to_string (const fraction< int_type > &v) noexcept |
|
std::string | jau::to_string (const fraction_timespec &v) noexcept |
|
constexpr const jau::fraction_i64 | jau::fractions_i64::years (31 '557 '600l, 1lu) |
| years is 31'557'600/1 using 365.2425 days per year
|
|
constexpr const jau::fraction_timespec | jau::fraction_tv::zero (0, 0) |
| jau::fraction_timespec zero is { 0, 0 }
|
|
constexpr const jau::fraction_i64 | jau::fractions_i64::zero (0l, 1lu) |
| zero is 0/1
|
|