Developer documentation

texp_isring.hpp
Go to the documentation of this file.
1 #ifndef realroot_ARITHM_TRAITS_ISRING_H
2 #define realroot_ARITHM_TRAITS_ISRING_H
3 
5 
6 //======================================================================
7 namespace mmx {
8 //======================================================================
9 
10 namespace texp {
11 
12  template<typename X>
13  struct isring_ { typedef null_t T; };
14 
15  template<>
16  struct isring_<int> { typedef true_t T; };
17  template<>
18  struct isring_<long int> { typedef true_t T; };
19  template<>
20  struct isring_<float> { typedef true_t T; };
21  template<>
22  struct isring_<double> { typedef true_t T; };
23  template<>
24  struct isring_<long double> { typedef true_t T; };
25 
26  template<typename K, typename X>
27  struct kernel_isring { typedef true_t T; };
28  template<typename X>
29  struct kernel_isring<null_t,X> { typedef typename isring_<X>::T T; };
30 
31  template<typename X>
32  struct isring
33  {
34  typedef typename ucstref<X>::T _X;
36  };
37 
38 
39 }
40 //======================================================================
41 } // namespace mmx
42 //======================================================================
43 #endif
true_t T
Definition: texp_isring.hpp:27
true_t T
Definition: texp_isring.hpp:24
true_t T
Definition: texp_isring.hpp:16
TMPL X
Definition: polynomial_operators.hpp:148
structure defining a the empty list
Definition: texp_bool.hpp:11
Definition: texp_isring.hpp:27
kernel_isring< typename kernelof< _X >::T, _X >::T T
Definition: texp_isring.hpp:35
true_t T
Definition: texp_isring.hpp:22
true_t T
Definition: texp_isring.hpp:18
Definition: texp_isring.hpp:13
structure defining a positive answer
Definition: texp_bool.hpp:7
Definition: texp_isring.hpp:32
null_t T
Definition: texp_isring.hpp:13
uref< typename ucst< X >::T >::T T
Definition: texp_strip_qualifiers.hpp:28
true_t T
Definition: texp_isring.hpp:20
ucstref< X >::T _X
Definition: texp_isring.hpp:34
Definition: array.hpp:12
isring_< X >::T T
Definition: texp_isring.hpp:29
Home