![]() |
deal.II version 9.7.1
|
#include <deal.II/base/hdf5.h>

Public Member Functions | |
| Group | open_group (const std::string &name) const |
| Group | create_group (const std::string &name) const |
| DataSet | open_dataset (const std::string &name) const |
| template<typename number> | |
| DataSet | create_dataset (const std::string &name, const std::vector< hsize_t > &dimensions) const |
| template<typename Container> | |
| void | write_dataset (const std::string &name, const Container &data) const |
| template<typename T> | |
| T | get_attribute (const std::string &attr_name) const |
| template<> | |
| std::string | get_attribute (const std::string &attr_name) const |
| template<typename T> | |
| void | set_attribute (const std::string &attr_name, const T value) |
| template<> | |
| void | set_attribute (const std::string &attr_name, const std::string value) |
| std::string | get_name () const |
Protected Types | |
| enum class | GroupAccessMode { open , create } |
Protected Member Functions | |
| Group (const std::string &name, const Group &parent_group, const bool mpi, const GroupAccessMode mode) | |
| Group (const std::string &name, const bool mpi) | |
Protected Attributes | |
| const std::string | name |
| std::shared_ptr< hid_t > | hdf5_reference |
| const bool | mpi |
|
strongprotected |
|
protected |
This constructor creates or opens a group depending on the value of mode. The group will be placed inside the group parent_group. The parameter mpi defines if the I/O operations are serial or parallel. This is an internal constructor, the functions open_group() and create_group() of the current class should be used to open or create a group.
|
protected |
| Group HDF5::Group::open_group | ( | const std::string & | name | ) | const |
| Group HDF5::Group::create_group | ( | const std::string & | name | ) | const |
| DataSet HDF5::Group::open_dataset | ( | const std::string & | name | ) | const |
| DataSet HDF5::Group::create_dataset | ( | const std::string & | name, |
| const std::vector< hsize_t > & | dimensions ) const |
Creates a dataset. number can be float, double, std::complex<float>, std::complex<double>, int or unsigned int.
Datatype conversion takes place at the time of a read or write and is automatic. See the Data Transfer: Datatype Conversion and Selection section in the HDF5 User's Guide.
| void HDF5::Group::write_dataset | ( | const std::string & | name, |
| const Container & | data ) const |
Create and write data to a dataset. number can be float, double, std::complex<float>, std::complex<double>, int or unsigned int.
Datatype conversion takes place at the time of a read or write and is automatic. See the Data Transfer: Datatype Conversion and Selection section in the HDF5 User's Guide.
Container can be std::vector<float>, std::vector<double>, std::vector<std::complex<float>>, std::vector<std::complex<double>>, std::vector<int>, std::vector<unsigned int>, Vector<float>, Vector<double>, Vector<std::complex<float>>, Vector<std::complex<double>>, FullMatrix<float>, FullMatrix<double>, FullMatrix<std::complex<float>> or FullMatrix<std::complex<double>>.
|
inherited |
Reads an attribute. T can be float, double, std::complex<float>, std::complex<double>, int, unsigned int, bool or std::string. Note that the encoding of std::string is UTF8 in order to be compatible with python3.
Datatype conversion takes place at the time of a read or write and is automatic. See the Data Transfer: Datatype Conversion and Selection section in the HDF5 User's Guide.
|
inlineinherited |
|
inherited |
Writes an attribute. T can be float, double, std::complex<float>, std::complex<double>, int, unsigned int, bool or std::string. Note that the encoding of std::string is UTF8 in order to be compatible with python3.
Datatype conversion takes place at the time of a read or write and is automatic. See the Data Transfer: Datatype Conversion and Selection section in the HDF5 User's Guide.
|
inlineinherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
HDF5 identifier for the objects File, Group and DataSet. The std::shared_ptr<> pointer allows the object to be copied. For example several parts of the program can share and access the same group; when all the functions that access the group are closed, the HDF5 resources of the group will be automatically released.
|
protectedinherited |