OmniSciDB  c1a53651b2
 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 1194 of file heavydbTypes.h.

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

1194  {
1195  if constexpr (std::is_same<T, int8_t>::value) {
1197  } else if constexpr (std::is_same<T, int16_t>::value) {
1199  } else if constexpr (std::is_same<T, int32_t>::value) {
1201  } else if constexpr (std::is_same<T, int64_t>::value) {
1203  } else if constexpr (std::is_same<T, float>::value) {
1205  } else if constexpr (std::is_same<T, double>::value) {
1207  } else if constexpr (std::is_same<T, bool>::value) {
1209  }
1210  throw std::runtime_error("Unsupported TableFunctionMetadataType");
1211 }