MCKL
Monte Carlo Kernel Library
Classes | Namespaces | Functions
hdf5.hpp File Reference
#include <mckl/internal/common.hpp>
#include <mckl/core/matrix.hpp>
#include <hdf5.h>

Go to the source code of this file.

Classes

class  mckl::HDF5Attribute
 RAII class for HDF5 attribute. More...
 
class  mckl::HDF5DataSet
 RAII class for HDF5 data set. More...
 
class  mckl::HDF5DataSpace
 RAII class for HDF5 data space. More...
 
class  mckl::HDF5DataType
 RAII class for HDF5 data type. More...
 
class  mckl::HDF5File
 RAII class for HDF5 file object. More...
 
class  mckl::HDF5Group
 RAII class for HDF5 group. More...
 
class  mckl::HDF5ID< Derived >
 RAII class for HDF5 IDs. More...
 
class  mckl::HDF5PropertyList
 RAII class for HDF5 property list. More...
 

Namespaces

 mckl
 

Functions

bool mckl::hdf5_error_printing (bool enabled)
 Enable and disable HDF5 low level error printing. More...
 
template<typename Location , typename T , typename Alloc >
bool mckl::hdf5append (Location &&location, const std::string &name, const Vector< T, Alloc > &vec)
 Append a vector in HDF5 format. More...
 
template<typename Location , typename T >
bool mckl::hdf5load (Location &&location, const std::string &name, T *value, bool isattr=false, decltype(hdf5type< T >()) *=nullptr)
 Load a value form HDF5 format. More...
 
template<typename Location >
bool mckl::hdf5load (Location &&location, const std::string &name, std::string *str, bool isattr=false)
 Load a string form HDF5 format. More...
 
template<typename Location , typename T , typename Alloc >
bool mckl::hdf5load (Location &&location, const std::string &name, Vector< T, Alloc > *vec, bool isattr=false)
 Load a vector form HDF5 format. More...
 
template<typename Location , typename T , MatrixLayout Layout, typename Alloc >
bool mckl::hdf5load (Location &&location, const std::string &name, Matrix< T, Layout, Alloc > *mat, bool isattr=false)
 Load a row major matrix form HDF5 format. More...
 
template<typename Location , typename T >
bool mckl::hdf5store (Location &&location, const std::string &name, const T &value, bool isattr=false, decltype(hdf5type< T >()) *=nullptr)
 Store a value in HDF5 format. More...
 
template<typename Location >
bool mckl::hdf5store (Location &&location, const std::string &name, const std::string &str, bool isattr=false)
 Store a string in HDF5 format. More...
 
template<typename Location , typename T , typename Alloc >
bool mckl::hdf5store (Location &&location, const std::string &name, const Vector< T, Alloc > &vec, bool isattr=false, bool extensible=false, std::size_t chunk_size=1024)
 Store a vector in HDF5 format. More...
 
template<typename Location , typename T , MatrixLayout Layout, typename Alloc >
bool mckl::hdf5store (Location &&location, const std::string &name, const Matrix< T, Layout, Alloc > &mat, bool isattr=false)
 Store a Matrix in HDF5 format. More...
 
template<typename T >
HDF5DataType mckl::hdf5type ()
 HDF5 data type. More...
 
inline ::hid_t mckl::hdf5typeid (char *)
 HDF5 data type id overload for char. More...
 
inline ::hid_t mckl::hdf5typeid (signed char *)
 HDF5 data type id overload for signed char. More...
 
inline ::hid_t mckl::hdf5typeid (unsigned char *)
 HDF5 data type id overload for unsigned char. More...
 
inline ::hid_t mckl::hdf5typeid (short *)
 HDF5 data type id overload for short. More...
 
inline ::hid_t mckl::hdf5typeid (unsigned short *)
 HDF5 data type id overload for unsigned short. More...
 
inline ::hid_t mckl::hdf5typeid (int *)
 HDF5 data type id overload for int. More...
 
inline ::hid_t mckl::hdf5typeid (unsigned int *)
 HDF5 data type id overload for unsigned int. More...
 
inline ::hid_t mckl::hdf5typeid (long *)
 HDF5 data type id overload for long. More...
 
inline ::hid_t mckl::hdf5typeid (unsigned long *)
 HDF5 data type id overload for unsigned long. More...
 
inline ::hid_t mckl::hdf5typeid (long long *)
 HDF5 data type id overload for long long. More...
 
inline ::hid_t mckl::hdf5typeid (unsigned long long *)
 HDF5 data type id overload for unsigned long. More...
 
inline ::hid_t mckl::hdf5typeid (float *)
 HDF5 data type id overload for float. More...
 
inline ::hid_t mckl::hdf5typeid (double *)
 HDF5 data type id overload for double. More...
 
inline ::hid_t mckl::hdf5typeid (long double *)
 HDF5 data type id overload for long double. More...
 
inline ::herr_t mckl_hdf5_add_link (::hid_t, const char *name, const ::H5L_info_t *, void *opdata)
 
inline ::herr_t mckl_hdf5_inc_link (::hid_t, const char *, const ::H5L_info_t *, void *opdata)
 

Function Documentation

◆ mckl_hdf5_add_link()

inline ::herr_t mckl_hdf5_add_link ( ::hid_t  ,
const char *  name,
const ::H5L_info_t *  ,
void *  opdata 
)

Definition at line 39 of file hdf5.hpp.

◆ mckl_hdf5_inc_link()

inline ::herr_t mckl_hdf5_inc_link ( ::hid_t  ,
const char *  ,
const ::H5L_info_t *  ,
void *  opdata 
)

Definition at line 48 of file hdf5.hpp.