rebl-AMR
datatype.h
Go to the documentation of this file.
1 #ifndef _DATATYPE_H_
2 #define _DATATYPE_H_
3 #include "definitions.h"
4 
5 // this is only to be able to redundantly use the same nonemclature in other namespaces
6 // does not mean mych really, remove it if not like it
7 
8 namespace Abstraction
9 {
10  typedef enum
11  {
23  } DataType;
24 }
25 
35 template <class T>
37 {
38  throw std::runtime_error("Intrinsic type not supported by the abstraction");
39 }
40 
42 // the nullptr type has to be used here, which is nullptr_t
43 // nullptr_t will set the MPI_DATATYPE to MPI_BYTE
44 // unofrtunately one still has to specify the template parameter as nullptr_t
45 template <>
47 {
49 }
50 
51 template <>
53 {
55 }
56 
57 template <>
59 {
61 }
62 
63 template <>
65 {
67 }
68 
69 template <>
71 {
73 }
74 
75 template <>
77 {
78  return Abstraction::type_int;
79 }
80 
81 template <>
83 {
85 }
86 
87 template <>
89 {
91 }
92 
93 template <>
95 {
97 }
98 
99 template <>
101 {
103 }
104 
105 template <>
107 {
109 }
110 
111 
112 
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 #endif
Abstraction::DataType getAbstractionDataType< short >()
Definition: datatype.h:64
Abstraction::DataType getAbstractionDataType< char >()
Definition: datatype.h:52
Definition: datatype.h:17
Definition: datatype.h:22
Definition: datatype.h:18
Definition: datatype.h:15
Abstraction::DataType getAbstractionDataType< unsigned char >()
Definition: datatype.h:58
Definition: datatype.h:14
Abstraction::DataType getAbstractionDataType< int >()
Definition: datatype.h:76
Definition: datatype.h:21
Abstraction::DataType getAbstractionDataType< unsigned int >()
Definition: datatype.h:82
Abstraction::DataType getAbstractionDataType< float >()
Definition: datatype.h:100
Abstraction::DataType getAbstractionDataType< unsigned long >()
Definition: datatype.h:94
Definition: datatype.h:12
Definition: datatype.h:8
Definition: datatype.h:16
Abstraction::DataType getAbstractionDataType< double >()
Definition: datatype.h:106
Abstraction::DataType getAbstractionDataType()
Definition: datatype.h:36
Abstraction::DataType getAbstractionDataType< unsigned short >()
Definition: datatype.h:70
Definition: datatype.h:19
DataType
Definition: datatype.h:10
Definition: datatype.h:20
Definition: datatype.h:13
Abstraction::DataType getAbstractionDataType< long >()
Definition: datatype.h:88
Abstraction::DataType getAbstractionDataType< nullptr_t >()
Definition: datatype.h:46