|
| template<typename Type > |
| hid_t | theoretica::io::_internal::hdf5_type () |
| | Helper template to map C++ types to HDF5 Native Types.
|
| |
|
void | theoretica::io::_internal::suppress_errors () |
| | Suppress HDF5 error messages by setting a custom dummy error handler.
|
| |
| void | theoretica::io::_internal::remove_link (const hdf5_handle &id, const std::string &path) |
| | Removes a link (dataset or group) if it exists at the given path.
|
| |
| std::string | theoretica::io::to_string (const hdf5_node &node) |
| | Generates a string representation of the HDF5 tree structure.
|
| |
| std::ostream & | theoretica::io::operator<< (std::ostream &os, const hdf5_node &node) |
| | Prints the HDF5 file tree to a stream.
|
| |
| hdf5_handle | theoretica::io::hdf5_open (const std::string &filename, bool write=false) |
| | Open an HDF5 file with the given filename, returning a file handle.
|
| |
| bool | theoretica::io::hdf5_is_valid (const hdf5_handle &handle) |
| | Check whether a given HDF5 handle is valid.
|
| |
| hdf5_node | theoretica::io::hdf5_load (const hdf5_handle &id) |
| | Recursively loads the structure of an active HDF5 group or file.
|
| |
| void | theoretica::io::hdf5_create_group (const hdf5_handle &id, const std::string &path) |
| | Create a new group at the given path under an already open HDF5 location.
|
| |
| void | theoretica::io::hdf5_delete_group (const hdf5_handle &id, const std::string &path) |
| | Delete a group (link) at the given path under an already open HDF5 location.
|
| |
| template<typename Type > |
| Type | theoretica::io::hdf5_read_attribute (const hdf5_handle &id, const std::string &path, const std::string &attr_name) |
| | Reads an attribute attached to a specific node.
|
| |
| void | theoretica::io::hdf5_delete_attribute (const hdf5_handle &id, const std::string &path, const std::string &attr_name) |
| | Deletes an attribute attached to a specific node, if it exists.
|
| |
| template<typename Type > |
| void | theoretica::io::hdf5_write_attribute (const hdf5_handle &id, const std::string &path, const std::string &attr_name, const Type &value) |
| | Writes or overwrites an attribute attached to a specific node.
|
| |
| template<typename Vector = vec<real>> |
| Vector & | theoretica::io::hdf5_read_vec (const hdf5_handle &id, const std::string &path, Vector &v) |
| | Loads a 1D dataset array into a vector.
|
| |
| template<typename Vector = vec<real>> |
| Vector | theoretica::io::hdf5_read_vec (const hdf5_handle &id, const std::string &path) |
| | Loads a 1D dataset array into a vector.
|
| |
| template<typename Vector > |
| void | theoretica::io::hdf5_write_vec (const hdf5_handle &id, const std::string &path, const Vector &v) |
| | Writes a 1D vector to an HDF5 dataset, overwriting if it exists.
|
| |
| void | theoretica::io::hdf5_delete_dataset (const hdf5_handle &id, const std::string &path) |
| | Deletes a dataset at the given path if it exists.
|
| |
| template<typename Matrix = mat<real>> |
| Matrix | theoretica::io::hdf5_read_mat (const hdf5_handle &id, const std::string &path, Matrix &m) |
| | Loads a 2D dataset array into a matrix.
|
| |
| template<typename Matrix = mat<real>> |
| Matrix | theoretica::io::hdf5_read_mat (const hdf5_handle &id, const std::string &path) |
| | Loads a 2D dataset array into a matrix.
|
| |
| template<typename Matrix > |
| void | theoretica::io::hdf5_write_mat (const hdf5_handle &id, const std::string &path, const Matrix &m) |
| | Writes a 2D matrix to an HDF5 dataset, overwriting if it exists.
|
| |