QMCPACK
hdf_datatype.h File Reference
+ Include dependency graph for hdf_datatype.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 qmcplusplus
 helper functions for EinsplineSetBuilder
 

Macros

#define BOOSTSUB_H5_DATATYPE(CppType, H5DTYPE)
 

Functions

template<typename T , typename ENABLE = std::enable_if_t<!std::is_same<bool, T>::value>>
hid_t get_h5_datatype (const T &)
 map C types to hdf5 native types bool is explicit removed due to the fact that it is implementation-dependant More...
 
 BOOSTSUB_H5_DATATYPE (char, H5T_NATIVE_CHAR)
 
 BOOSTSUB_H5_DATATYPE (short, H5T_NATIVE_SHORT)
 
 BOOSTSUB_H5_DATATYPE (int, H5T_NATIVE_INT)
 
 BOOSTSUB_H5_DATATYPE (long, H5T_NATIVE_LONG)
 
 BOOSTSUB_H5_DATATYPE (long long, H5T_NATIVE_LLONG)
 
 BOOSTSUB_H5_DATATYPE (unsigned char, H5T_NATIVE_UCHAR)
 
 BOOSTSUB_H5_DATATYPE (unsigned short, H5T_NATIVE_USHORT)
 
 BOOSTSUB_H5_DATATYPE (unsigned int, H5T_NATIVE_UINT)
 
 BOOSTSUB_H5_DATATYPE (unsigned long, H5T_NATIVE_ULONG)
 
 BOOSTSUB_H5_DATATYPE (unsigned long long, H5T_NATIVE_ULLONG)
 
 BOOSTSUB_H5_DATATYPE (float, H5T_NATIVE_FLOAT)
 
 BOOSTSUB_H5_DATATYPE (double, H5T_NATIVE_DOUBLE)
 

Macro Definition Documentation

◆ BOOSTSUB_H5_DATATYPE

#define BOOSTSUB_H5_DATATYPE (   CppType,
  H5DTYPE 
)
Value:
template<> \
inline hid_t get_h5_datatype<CppType>(const CppType&) \
{ \
return H5DTYPE; \
}

Definition at line 27 of file hdf_datatype.h.