TRIQS/h5 1.3.0
C++ interface to HDF5
Loading...
Searching...
No Matches
Utilities

Detailed Description

A collection of convenience functions, definitions and various other tools used throughout the h5 library.

Concepts

concept  h5::Storable
 Concept to check if a type can be read/written from/to HDF5.
 

Typedefs

using h5::hid_t = int64_t
 ID type used in HDF5.
 
using h5::hsize_t = unsigned long long
 Size type used in HDF5.
 
using h5::v_t = std::vector<hsize_t>
 Vector of h5::hsize_t used throughout the h5 library.
 

Functions

template<typename... Ts>
std::runtime_error h5::make_runtime_error (Ts const &...ts)
 Create a std::runtime_error with an error message constructed from the given arguments.
 

Typedef Documentation

◆ hid_t

using h5::hid_t = int64_t

#include <h5/utils.hpp>

ID type used in HDF5.

This is just a copy from the HDF5 library (see the official documentation). It is used to completely isolate our header from the HDF5 headers. In the object.cpp file a static_assert is used to verify its validity.

Definition at line 45 of file utils.hpp.

◆ hsize_t

using h5::hsize_t = unsigned long long

#include <h5/utils.hpp>

Size type used in HDF5.

This is just a copy from the HDF5 library. It is used to completely isolate our header from the HDF5 headers. In the object.cpp file a static_assert is used to verify its validity.

Definition at line 55 of file utils.hpp.

Function Documentation

◆ make_runtime_error()

template<typename... Ts>
std::runtime_error h5::make_runtime_error ( Ts const &... ts)
nodiscard

#include <h5/utils.hpp>

Create a std::runtime_error with an error message constructed from the given arguments.

Template Parameters
TsTypes of the arguments.
Parameters
tsArguments streamed into the error message string.
Returns
std::runtime_error.

Definition at line 69 of file utils.hpp.