icedb  version 0.5.1
Snow particle scattering database API
Functions
icedb::Data_Types Namespace Reference

Functions to detect the type of stored data. More...

Functions

template<class T >
constexpr bool Is_Valid_Data_Type ()
 Is the type (T) a type supported for I/O by this library? More...
 
template<>
constexpr bool Is_Valid_Data_Type< uint64_t > ()
 
template<>
constexpr bool Is_Valid_Data_Type< int64_t > ()
 
template<>
constexpr bool Is_Valid_Data_Type< uint32_t > ()
 
template<>
constexpr bool Is_Valid_Data_Type< int32_t > ()
 
template<>
constexpr bool Is_Valid_Data_Type< uint16_t > ()
 
template<>
constexpr bool Is_Valid_Data_Type< int16_t > ()
 
template<>
constexpr bool Is_Valid_Data_Type< uint8_t > ()
 
template<>
constexpr bool Is_Valid_Data_Type< int8_t > ()
 
template<>
constexpr bool Is_Valid_Data_Type< float > ()
 
template<>
constexpr bool Is_Valid_Data_Type< double > ()
 
template<>
constexpr bool Is_Valid_Data_Type< char > ()
 
template<>
constexpr bool Is_Valid_Data_Type< std::string > ()
 
bool Is_Valid_Data_Type (const std::type_info &type_id)
 Is the type (type_id) a type supported for I/O by this library? More...
 
template<class T >
const std::type_index getType ()
 

Detailed Description

Functions to detect the type of stored data.

Function Documentation

◆ getType()

template<class T >
const std::type_index icedb::Data_Types::getType ( )

Definition at line 53 of file Data_Types.hpp.

53 { return typeid(T); }

◆ Is_Valid_Data_Type() [1/2]

template<class T >
constexpr bool icedb::Data_Types::Is_Valid_Data_Type ( )

Is the type (T) a type supported for I/O by this library?

Definition at line 21 of file Data_Types.hpp.

21 { return false; }

◆ Is_Valid_Data_Type() [2/2]

bool icedb::Data_Types::Is_Valid_Data_Type ( const std::type_info &  type_id)
inline

Is the type (type_id) a type supported for I/O by this library?

Definition at line 35 of file Data_Types.hpp.

35  {
36  if (type_id == typeid(uint64_t)) return true;
37  else if (type_id == typeid(int64_t)) return true;
38  else if (type_id == typeid(uint32_t)) return true;
39  else if (type_id == typeid(int32_t)) return true;
40  else if (type_id == typeid(uint16_t)) return true;
41  else if (type_id == typeid(int16_t)) return true;
42  else if (type_id == typeid(uint8_t)) return true;
43  else if (type_id == typeid(int8_t)) return true;
44  else if (type_id == typeid(float)) return true;
45  else if (type_id == typeid(double)) return true;
46  else if (type_id == typeid(char)) return true;
47  else if (type_id == typeid(std::string)) return true;
48  return false;
49  }

◆ Is_Valid_Data_Type< char >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< char > ( )

Definition at line 32 of file Data_Types.hpp.

32 { return true; }

◆ Is_Valid_Data_Type< double >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< double > ( )

Definition at line 31 of file Data_Types.hpp.

31 { return true; }

◆ Is_Valid_Data_Type< float >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< float > ( )

Definition at line 30 of file Data_Types.hpp.

30 { return true; }

◆ Is_Valid_Data_Type< int16_t >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< int16_t > ( )

Definition at line 27 of file Data_Types.hpp.

27 { return true; }

◆ Is_Valid_Data_Type< int32_t >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< int32_t > ( )

Definition at line 25 of file Data_Types.hpp.

25 { return true; }

◆ Is_Valid_Data_Type< int64_t >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< int64_t > ( )

Definition at line 23 of file Data_Types.hpp.

23 { return true; }

◆ Is_Valid_Data_Type< int8_t >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< int8_t > ( )

Definition at line 29 of file Data_Types.hpp.

29 { return true; }

◆ Is_Valid_Data_Type< std::string >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< std::string > ( )

Definition at line 33 of file Data_Types.hpp.

33 { return true; }

◆ Is_Valid_Data_Type< uint16_t >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< uint16_t > ( )

Definition at line 26 of file Data_Types.hpp.

26 { return true; }

◆ Is_Valid_Data_Type< uint32_t >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< uint32_t > ( )

Definition at line 24 of file Data_Types.hpp.

24 { return true; }

◆ Is_Valid_Data_Type< uint64_t >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< uint64_t > ( )

Definition at line 22 of file Data_Types.hpp.

22 { return true; }

◆ Is_Valid_Data_Type< uint8_t >()

template<>
constexpr bool icedb::Data_Types::Is_Valid_Data_Type< uint8_t > ( )

Definition at line 28 of file Data_Types.hpp.

28 { return true; }