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

Public Types | |
| enum class | FileAccessMode { open , create } |
Public Member Functions | |
| File (const std::string &name, const FileAccessMode mode) | |
| File (const std::string &name, const FileAccessMode mode, const MPI_Comm mpi_communicator) | |
| 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 Attributes | |
| const std::string | name |
| std::shared_ptr< hid_t > | hdf5_reference |
| const bool | mpi |
Private Member Functions | |
| File (const std::string &name, const FileAccessMode mode, const bool mpi, const MPI_Comm mpi_communicator) | |
|
strong |
|
strongprotectedinherited |
| HDF5::File::File | ( | const std::string & | name, |
| const FileAccessMode | mode ) |
| HDF5::File::File | ( | const std::string & | name, |
| const FileAccessMode | mode, | ||
| const MPI_Comm | mpi_communicator ) |
Creates or opens an HDF5 file in parallel using MPI. This requires that deal.II and HDF5 were compiled with MPI support. It creates or opens a HDF5 file depending on the value of mode. mpi_communicator defines the processes that participate in this call; MPI_COMM_WORLD is a common value for the MPI communicator.
|
private |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
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.
|
inherited |
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 |