Go to the documentation of this file.
10 #ifndef vtk_m_cont_SerializableTypeString_h
11 #define vtk_m_cont_SerializableTypeString_h
25 struct SerializableTypeString
26 #ifdef VTKM_DOXYGEN_ONLY
30 static std::string name =
"TypeName";
40 template <
typename T,
typename... Ts>
41 std::string GetVariadicSerializableTypeString(
const T&,
const Ts&... ts)
47 std::string GetVariadicSerializableTypeString(
const T&)
56 struct SerializableTypeString<
vtkm::
Int8>
60 static std::string name =
"I8";
66 struct SerializableTypeString<
vtkm::
UInt8>
70 static std::string name =
"U8";
76 struct SerializableTypeString<
vtkm::
Int16>
80 static std::string name =
"I16";
90 static std::string name =
"U16";
96 struct SerializableTypeString<
vtkm::
Int32>
100 static std::string name =
"I32";
110 static std::string name =
"U32";
116 struct SerializableTypeString<
vtkm::
Int64>
120 static std::string name =
"I64";
130 static std::string name =
"U64";
140 static std::string name =
"F32";
150 static std::string name =
"F64";
156 struct SerializableTypeString<bool>
160 static std::string name =
"B8";
166 struct SerializableTypeString<char>
170 static std::string name =
"C8";
195 template <
typename T, vtkm::IdComponent NumComponents>
196 struct SerializableTypeString<
vtkm::Vec<T, NumComponents>>
200 static std::string name =
206 template <
typename T1,
typename T2>
207 struct SerializableTypeString<
vtkm::Pair<T1, T2>>
220 #endif // vtk_m_cont_SerializableTypeString_h
Groups connected points that have the same field value.
Definition: Atomic.h:19
auto Get(const vtkm::Tuple< Ts... > &tuple)
Retrieve the object from a vtkm::Tuple at the given index.
Definition: Tuple.h:81
int16_t Int16
Base type to use for 16-bit signed integer numbers.
Definition: Types.h:173
int8_t Int8
Base type to use for 8-bit signed integer numbers.
Definition: Types.h:165
#define VTKM_CONT
Definition: ExportMacros.h:57
signed long long Int64
Base type to use for 64-bit signed integer numbers.
Definition: Types.h:204
uint8_t UInt8
Base type to use for 8-bit unsigned integer numbers.
Definition: Types.h:169
uint32_t UInt32
Base type to use for 32-bit unsigned integer numbers.
Definition: Types.h:185
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:157
unsigned long long UInt64
Base type to use for 64-bit signed integer numbers.
Definition: Types.h:207
int32_t Int32
Base type to use for 32-bit signed integer numbers.
Definition: Types.h:181
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
#define VTKM_UNUSED_INT_TYPE
Definition: Types.h:208
uint16_t UInt16
Base type to use for 16-bit unsigned integer numbers.
Definition: Types.h:177