Advanced Multi-Physics (AMP)
On-Line Documentation
Namespaces | Typedefs | Enumerations | Functions
HDF.h File Reference
#include "AMP/AMP_TPLs.h"
#include "AMP/utils/AMP_MPI.h"
#include "AMP/utils/ArraySize.h"
#include <cstddef>
#include <cstring>
#include <memory>
#include <string>
#include <tuple>
#include <vector>
Include dependency graph for HDF.h:

Go to the source code of this file.

Namespaces

namespace  AMP
 
namespace  AMP::IO
 

Typedefs

typedef int64_t hid_t
 
typedef size_t hsize_t
 

Enumerations

enum class  AMP::IO::Compression : uint8_t { AMP::IO::None , AMP::IO::GZIP , AMP::IO::SZIP }
 

Functions

void AMP::IO::closeDataset (hid_t fid)
 Close a dataset.
 
void AMP::IO::closeDataspace (hid_t fid)
 Close a dataspace.
 
void AMP::IO::closeDatatype (hid_t fid)
 Close a datatype.
 
void AMP::IO::closeGroup (hid_t fid)
 Close a group.
 
void AMP::IO::closeHDF5 (hid_t fid, bool printLeaks=false)
 Open an HDF5 file.
 
hid_t AMP::IO::createChunk (AMP::ArraySize dims, Compression compress, size_t objSize=0)
 Open an HDF5 file.
 
hid_t AMP::IO::createGroup (hid_t fid, const std::string &name)
 Create a group.
 
Compression AMP::IO::defaultCompression (hid_t fid)
 Retrun the the default compression.
 
template<class T >
hid_t AMP::IO::getHDF5datatype ()
 Get HDF5 data type.
 
hid_t AMP::IO::getHDF5datatype (hid_t fid, const std::string &name)
 Get the type of a dataset.
 
bool AMP::IO::H5Dexists (hid_t fid, const std::string &name)
 Check if dataset exists.
 
bool AMP::IO::H5Gexists (hid_t fid, const std::string &name)
 Check if group exists.
 
bool AMP::IO::HDF5enabled ()
 Is HDF5 enabled.
 
hid_t AMP::IO::openGroup (hid_t fid, const std::string &name, bool create=false)
 Open a group.
 
hid_t AMP::IO::openHDF5 (const std::string &filename, const char *mode, Compression compress=Compression::None)
 Open an HDF5 file.
 
std::tuple< std::vector< hid_t >, std::vector< hid_t >, std::vector< hid_t >, std::vector< hid_t >, std::vector< hid_t > > AMP::IO::openObjects (hid_t fid)
 list open objects
 
template<class T >
std::unique_ptr< T > AMP::IO::readHDF5 (hid_t fid, const std::string &name, AMP_MPI comm=AMP_COMM_SELF)
 Read a structure from HDF5.
 
void AMP::IO::readHDF5 (hid_t fid, const std::string &name, size_t N_bytes, void *data)
 Read data from HDF5.
 
template<class T >
void AMP::IO::readHDF5 (hid_t fid, const std::string &name, T &data)
 Read a structure from HDF5.
 
template<class T >
void AMP::IO::writeHDF5 (hid_t fid, const std::string &name, const T &data)
 Write a structure to HDF5.
 
void AMP::IO::writeHDF5 (hid_t fid, const std::string &name, size_t N_bytes, const void *data)
 Write data to HDF5.
 

Typedef Documentation

◆ hid_t

typedef int64_t hid_t

Definition at line 23 of file HDF.h.

◆ hsize_t

typedef size_t hsize_t

Definition at line 24 of file HDF.h.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page