Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
static_rational.hpp File Reference

Compile-time rational numbers and operators. More...

Include dependency graph for static_rational.hpp:

Classes

struct  boost::units::detail::static_rational_tag
 
struct  boost::units::static_abs< Value >
 Compile time absolute value. More...
 
class  boost::units::static_rational< N, D >
 This is an implementation of a compile time rational number, where static_rational<N,D> represents a rational number with numerator N and denominator D. More...
 
struct  boost::mpl::plus_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >
 
struct  boost::mpl::plus_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >::apply< T0, T1 >
 
struct  boost::mpl::minus_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >
 
struct  boost::mpl::minus_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >::apply< T0, T1 >
 
struct  boost::mpl::times_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >
 
struct  boost::mpl::times_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >::apply< T0, T1 >
 
struct  boost::mpl::divides_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >
 
struct  boost::mpl::divides_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >::apply< T0, T1 >
 
struct  boost::mpl::negate_impl< boost::units::detail::static_rational_tag >
 
struct  boost::mpl::negate_impl< boost::units::detail::static_rational_tag >::apply< T0 >
 
struct  boost::mpl::less_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >
 
struct  boost::mpl::less_impl< boost::units::detail::static_rational_tag, boost::units::detail::static_rational_tag >::apply< T0, T1 >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::units
 
 boost::units::detail
 
 boost::mpl
 

Typedefs

typedef long boost::units::integer_type
 

Functions

template<class T , integer_type N, integer_type D>
divide_typeof_helper< T, T >::type boost::units::value (const static_rational< N, D > &)
 get decimal value of static_rational More...
 

Detailed Description

Compile-time rational numbers and operators.