STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Static Public Attributes | List of all members
_Ratio_multiply< _R1, _R2 > Struct Template Reference

Public Types

typedef ratio< _Safe_mult< _N1/_Gx, _N2/_Gy >::value, _Safe_mult< _D1/_Gy, _D2/_Gx >::value > type
 

Static Public Attributes

static const intmax_t _N1 = _R1::num
 
static const intmax_t _D1 = _R1::den
 
static const intmax_t _N2 = _R2::num
 
static const intmax_t _D2 = _R2::den
 
static const intmax_t _Gx = _Gcd<_N1, _D2>::value
 
static const intmax_t _Gy = _Gcd<_N2, _D1>::value
 

Member Typedef Documentation

template<class _R1 , class _R2 >
typedef ratio< _Safe_mult<_N1 / _Gx, _N2 / _Gy>::value, _Safe_mult<_D1 / _Gy, _D2 / _Gx>::value > _Ratio_multiply< _R1, _R2 >::type

Member Data Documentation

template<class _R1 , class _R2 >
const intmax_t _Ratio_multiply< _R1, _R2 >::_D1 = _R1::den
static
template<class _R1 , class _R2 >
const intmax_t _Ratio_multiply< _R1, _R2 >::_D2 = _R2::den
static
template<class _R1 , class _R2 >
const intmax_t _Ratio_multiply< _R1, _R2 >::_Gx = _Gcd<_N1, _D2>::value
static
template<class _R1 , class _R2 >
const intmax_t _Ratio_multiply< _R1, _R2 >::_Gy = _Gcd<_N2, _D1>::value
static
template<class _R1 , class _R2 >
const intmax_t _Ratio_multiply< _R1, _R2 >::_N1 = _R1::num
static
template<class _R1 , class _R2 >
const intmax_t _Ratio_multiply< _R1, _R2 >::_N2 = _R2::num
static

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