Developer documentation

texp_rationalof.hpp
Go to the documentation of this file.
1 #ifndef realroot_ARITHM_TRAITS_RATIONALOF_H
2 #define realroot_ARITHM_TRAITS_RATIONALOF_H
4 
5 namespace mmx {
6 
7 namespace texp
8 {
9  template<class X> struct rationalof_ { typedef null_t T; };
10  // { typedef mpq_class T; };
11  // { Rational< typename integerof<X>::T > T; };
12  template<class K, class X, class extended> struct kernel_rationalof;
13  template<class K, class X> struct kernel_rationalof<K,X,true_t> { typedef typename K::extended_rational T; };
14  template<class K, class X> struct kernel_rationalof<K,X,false_t> { typedef typename K::rational T; };
15  template<class X, class extended>
16  struct kernel_rationalof<null_t,X,extended> { typedef typename rationalof_<X>::T T; };
17  template<class X>
18  struct rationalof
19  {
20  typedef typename ucstref<X>::T _X;
22  };
23 };
24 
25 }// end namespace mmx
26 
27 #endif
Definition: texp_rationalof.hpp:9
TMPL X
Definition: polynomial_operators.hpp:148
K::extended_rational T
Definition: texp_rationalof.hpp:13
structure defining a the empty list
Definition: texp_bool.hpp:11
Definition: extended.hpp:25
K::rational T
Definition: texp_rationalof.hpp:14
kernel_rationalof< typename kernelof< X >::T, _X, typename is_extended< X >::T >::T T
Definition: texp_rationalof.hpp:21
structure defining a positive answer
Definition: texp_bool.hpp:7
ucstref< X >::T _X
Definition: texp_rationalof.hpp:20
null_t T
Definition: texp_rationalof.hpp:9
rationalof_< X >::T T
Definition: texp_rationalof.hpp:16
uref< typename ucst< X >::T >::T T
Definition: texp_strip_qualifiers.hpp:28
Definition: texp_rationalof.hpp:18
structure defining a negative answer
Definition: texp_bool.hpp:9
Definition: array.hpp:12
Definition: texp_rationalof.hpp:12
Home