|
TRIQS/h5 2.0.0
C++ interface to HDF5
|
Map C++ datatypes to their corresponding HDF5 datatypes and other related functionality.
Classes | |
| struct | h5::dcplx_t |
| A complex compound type consisting of two doubles to represent a complex number. More... | |
Functions | |
| datatype | h5::get_hdf5_attribute_type (object obj, std::string const &name) |
| Get the HDF5 type of a named attribute attached to a given h5::object. | |
| datatype | h5::get_hdf5_type (dataset ds) |
| Get the HDF5 type stored in a given h5::dataset. | |
| template<typename T> | |
| std::string | h5::get_name_of_h5_type () |
| Get the name of the HDF5 datatype corresponding to a C++ type. | |
| std::string | h5::get_name_of_h5_type (datatype dt) |
| Get the name of an h5::datatype (for error messages). | |
| template<typename T> | |
| datatype | h5::hdf5_type () |
| Map a given C++ type to an HDF5 datatype. | |
| bool | h5::hdf5_type_equal (datatype dt1, datatype dt2) |
| Check if two HDF5 datatypes are equal. | |
Variables | |
| template<typename T> | |
| constexpr bool | h5::is_complex_v = detail::_is_complex<T>::value |
| Boolean type trait set to true for std::complex types. | |
#include <h5/object.cpp>
Get the HDF5 type of a named attribute attached to a given h5::object.
| obj | h5::object to which the attribute is attached. |
| name | Name of the attribute. |
Definition at line 199 of file object.cpp.
#include <h5/object.cpp>
Get the HDF5 type stored in a given h5::dataset.
| ds | h5::dataset. |
Definition at line 197 of file object.cpp.
|
nodiscard |
#include <h5/object.hpp>
Get the name of the HDF5 datatype corresponding to a C++ type.
| T | C++ type with a registered HDF5 datatype. |
Definition at line 177 of file object.hpp.
|
nodiscard |
#include <h5/object.cpp>
Get the name of an h5::datatype (for error messages).
Throws an exception if the datatype is not supported.
| dt | h5::datatype. |
Definition at line 184 of file object.cpp.
|
nodiscard |
#include <h5/object.hpp>
Map a given C++ type to an HDF5 datatype.
| T | C++ type. |
Definition at line 156 of file object.hpp.
#include <h5/object.cpp>
Check if two HDF5 datatypes are equal.
For string types, this function only checks if they are both of the class H5T_STRING. It does not take into account the size, character set, etc.
Otherwise, it simply uses H5Tequal. Throws an exception if the HDF5 call fails.
| dt1 | h5::datatype #1. |
| dt2 | h5::datatype #2. |
Definition at line 204 of file object.cpp.
|
constexpr |
#include <h5/complex.hpp>
Boolean type trait set to true for std::complex types.
| T | Type to check. |
Definition at line 65 of file complex.hpp.