OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{heavydbTypes.h} Namespace Reference

Functions

template<typename T >
TableFunctionMetadataType get_metadata_type ()
 

Function Documentation

template<typename T >
TableFunctionMetadataType anonymous_namespace{heavydbTypes.h}::get_metadata_type ( )

Definition at line 329 of file heavydbTypes.h.

References kBool, kDouble, kFloat, kInt16, kInt32, kInt64, and kInt8.

329  {
330  if constexpr (std::is_same<T, int8_t>::value) {
332  } else if constexpr (std::is_same<T, int16_t>::value) {
334  } else if constexpr (std::is_same<T, int32_t>::value) {
336  } else if constexpr (std::is_same<T, int64_t>::value) {
338  } else if constexpr (std::is_same<T, float>::value) {
340  } else if constexpr (std::is_same<T, double>::value) {
342  } else if constexpr (std::is_same<T, bool>::value) {
344  }
345  throw std::runtime_error("Unsupported TableFunctionMetadataType");
346 }