LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
util::quantities::concepts::details::numeric_limits< Q > Class Template Reference

Limits of a quantity are the same as the underlying type. More...

#include "quantities.h"

Inheritance diagram for util::quantities::concepts::details::numeric_limits< Q >:
std::numeric_limits< util::quantities::concepts::Interval< Q, Cat > > std::numeric_limits< util::quantities::concepts::Interval< Q, Cat > const  > std::numeric_limits< util::quantities::concepts::Point< Q, Cat, IV > > std::numeric_limits< util::quantities::concepts::Point< Q, Cat, IV > volatile > std::numeric_limits< util::quantities::concepts::Quantity< Unit, T > const  > std::numeric_limits< util::quantities::concepts::Quantity< Unit, T > volatile >

Static Public Member Functions

static constexpr quantity_t min () noexcept
 
static constexpr quantity_t max () noexcept
 
static constexpr quantity_t lowest () noexcept
 
static constexpr quantity_t epsilon () noexcept
 
static constexpr quantity_t round_error () noexcept
 
static constexpr quantity_t infinity () noexcept
 
static constexpr quantity_t quiet_NaN () noexcept
 
static constexpr quantity_t signaling_NaN () noexcept
 
static constexpr quantity_t denorm_min () noexcept
 

Private Types

using quantity_t = Q
 
using value_traits_t = std::numeric_limits< typename quantity_t::value_t >
 

Detailed Description

template<typename Q>
class util::quantities::concepts::details::numeric_limits< Q >

Limits of a quantity are the same as the underlying type.

Definition at line 324 of file quantities.h.

Member Typedef Documentation

template<typename Q>
using util::quantities::concepts::details::numeric_limits< Q >::quantity_t = Q
private

Definition at line 1179 of file quantities.h.

template<typename Q>
using util::quantities::concepts::details::numeric_limits< Q >::value_traits_t = std::numeric_limits<typename quantity_t::value_t>
private

Definition at line 1180 of file quantities.h.

Member Function Documentation

template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::denorm_min ( )
inlinestaticnoexcept

Definition at line 1203 of file quantities.h.

1204  {
1205  return quantity_t{value_traits_t::denorm_min()};
1206  }
template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::epsilon ( )
inlinestaticnoexcept

Definition at line 1186 of file quantities.h.

1186 { return quantity_t{value_traits_t::epsilon()}; }
template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::infinity ( )
inlinestaticnoexcept

Definition at line 1191 of file quantities.h.

1192  {
1193  return quantity_t{value_traits_t::infinity()};
1194  }
template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::lowest ( )
inlinestaticnoexcept

Definition at line 1185 of file quantities.h.

1185 { return quantity_t{value_traits_t::lowest()}; }
template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::max ( )
inlinestaticnoexcept

Definition at line 1184 of file quantities.h.

1184 { return quantity_t{value_traits_t::max()}; }
template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::min ( )
inlinestaticnoexcept

Definition at line 1183 of file quantities.h.

1183 { return quantity_t{value_traits_t::min()}; }
template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::quiet_NaN ( )
inlinestaticnoexcept

Definition at line 1195 of file quantities.h.

1196  {
1197  return quantity_t{value_traits_t::quiet_NaN()};
1198  }
template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::round_error ( )
inlinestaticnoexcept

Definition at line 1187 of file quantities.h.

1188  {
1189  return quantity_t{value_traits_t::round_error()};
1190  }
template<typename Q>
static constexpr quantity_t util::quantities::concepts::details::numeric_limits< Q >::signaling_NaN ( )
inlinestaticnoexcept

Definition at line 1199 of file quantities.h.

1200  {
1201  return quantity_t{value_traits_t::signaling_NaN()};
1202  }

The documentation for this class was generated from the following file: