31std::unordered_map<std::type_index, VTKDataType> VTKTypes::m_types = std::unordered_map<std::type_index, VTKDataType>();
34static VTKDataType VTKTypeIndex_sint = VTKTypes::registerType<short int>();
35static VTKDataType VTKTypeIndex_int = VTKTypes::registerType<int>();
36static VTKDataType VTKTypeIndex_long = VTKTypes::registerType<long>();
37static VTKDataType VTKTypeIndex_llong = VTKTypes::registerType<long long>();
38static VTKDataType VTKTypeIndex_usint = VTKTypes::registerType<unsigned short int>();
39static VTKDataType VTKTypeIndex_uint = VTKTypes::registerType<unsigned int>();
40static VTKDataType VTKTypeIndex_ulong = VTKTypes::registerType<unsigned long>();
41static VTKDataType VTKTypeIndex_ullong = VTKTypes::registerType<unsigned long long>();
42static VTKDataType VTKTypeIndex_uint8 = VTKTypes::registerType<uint8_t>();
43static VTKDataType VTKTypeIndex_uint16 = VTKTypes::registerType<uint16_t>();
44static VTKDataType VTKTypeIndex_uint32 = VTKTypes::registerType<uint32_t>();
45static VTKDataType VTKTypeIndex_uint64 = VTKTypes::registerType<uint64_t>();
46static VTKDataType VTKTypeIndex_int8 = VTKTypes::registerType<int8_t>();
47static VTKDataType VTKTypeIndex_int16 = VTKTypes::registerType<int16_t>();
48static VTKDataType VTKTypeIndex_int32 = VTKTypes::registerType<int32_t>();
49static VTKDataType VTKTypeIndex_int64 = VTKTypes::registerType<int64_t>();
50static VTKDataType VTKTypeIndex_float = VTKTypes::registerType<float>();
51static VTKDataType VTKTypeIndex_double = VTKTypes::registerType<double>();
54static VTKDataType VTKTypeIndex_VTKElement = VTKTypes::registerType<VTKElementType>();
70 case VTKDataType::Int8 :
case VTKDataType::UInt8:
71 return(
sizeof(int8_t) );
73 case VTKDataType::Int16 :
case VTKDataType::UInt16 :
74 return(
sizeof(int16_t) ) ;
76 case VTKDataType::Int32 :
case VTKDataType::UInt32 :
77 return(
sizeof(int32_t) ) ;
79 case VTKDataType::Int64 :
case VTKDataType::UInt64 :
80 return(
sizeof(int64_t) ) ;
82 case VTKDataType::Float32 :
83 return(
sizeof(
float) ) ;
85 case VTKDataType::Float64 :
86 return(
sizeof(
double) ) ;
88 case VTKDataType::UNDEFINED :
104 std::type_index index = std::type_index(typeInfo);
105 if (m_types.count(index) == 0) {
106 return VTKDataType::UNDEFINED;
109 return m_types.at(typeInfo);
static VTKDataType whichType()
static uint8_t sizeOfType(VTKDataType type)