QDP++
QDP::HDF5Reader Class Reference

HDF5 reader class. More...

#include <qdp_hdf5.h>

Inheritance diagram for QDP::HDF5Reader:
QDP::HDF5

Public Member Functions

 HDF5Reader ()
 Empty constructor.
 HDF5Reader (const long int &stripesize, const long int &maxalign=0)
 HDF5Reader (const std::string &filename)
 Construct from contents of file.
 ~HDF5Reader ()
 Destructor:
void open (const std::string &filename)
Public Member Functions inherited from QDP::HDF5
int close ()
void set_stripesize (const int &stripesizee)
void set_profiling (const bool &profilee)
std::string pwd () const
std::string parentDir () const
void pop ()
void cd (const std::string &dirname)
void readAttribute (const std::string &obj_name, const std::string &attr_name, short &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, unsigned short &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, int &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, unsigned int &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, unsigned long long &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, float &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, double &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, std::string &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< short > &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< unsigned short > &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< int > &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< unsigned int > &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< unsigned long long > &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< float > &datum)
void readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< double > &datum)
void read (const std::string &obj_name, short &datum)
void read (const std::string &obj_name, unsigned short &datum)
void read (const std::string &obj_name, int &datum)
void read (const std::string &obj_name, unsigned int &datum)
void read (const std::string &obj_name, unsigned long long &datum)
void read (const std::string &obj_name, float &datum)
void read (const std::string &obj_name, double &datum)
void read (const std::string &dataname, std::string &datum)
void read (const std::string &obj_name, multi1d< short > &datum)
void read (const std::string &obj_name, multi1d< unsigned short > &datum)
void read (const std::string &obj_name, multi1d< int > &datum)
void read (const std::string &obj_name, multi1d< unsigned int > &datum)
void read (const std::string &obj_name, multi1d< unsigned long long > &datum)
void read (const std::string &obj_name, multi1d< float > &datum)
void read (const std::string &obj_name, multi1d< double > &datum)
void read (const std::string &obj_name, multi2d< short > &datum)
void read (const std::string &obj_name, multi2d< unsigned short > &datum)
void read (const std::string &obj_name, multi2d< int > &datum)
void read (const std::string &obj_name, multi2d< unsigned int > &datum)
void read (const std::string &obj_name, multi2d< unsigned long long > &datum)
void read (const std::string &obj_name, multi2d< float > &datum)
void read (const std::string &obj_name, multi2d< double > &datum)
template<class T>
void read (const std::string &name, OScalar< T > &scalar)
template<class T>
void read (const std::string &name, multi1d< OScalar< T > > &scalararray)
template<class T>
void read (const std::string &name, OLattice< T > &field, const HDF5Base::accessmode &accmode=HDF5Base::transpose_order)
template<class T>
void read (const std::string &name, multi1d< OLattice< T > > &fieldarray, const HDF5Base::accessmode &accmode=HDF5Base::transpose_order)
void readQlua (const std::string &name, multi1d< LatticeColorMatrixD3 > &field)
void readQlua (const std::string &name, LatticeDiracPropagatorD3 &prop)
template<>
void read (const std::string &dataname, ComplexF &datum)
template<>
void read (const std::string &dataname, ComplexD &datum)
template<>
void read (const std::string &dataname, multi1d< ComplexF > &datum)
template<>
void read (const std::string &dataname, multi1d< ComplexD > &datum)
template<>
void read (const std::string &name, LatticeColorMatrixD3 &field, const HDF5Base::accessmode &accmode)
template<>
void read (const std::string &name, LatticeDiracPropagatorF3 &field, const HDF5Base::accessmode &accmode)
template<>
void read (const std::string &name, LatticeDiracPropagatorD3 &field, const HDF5Base::accessmode &accmode)
template<>
void read (const std::string &name, multi1d< LatticeColorMatrixD3 > &field, const HDF5Base::accessmode &accmode)

Additional Inherited Members

Static Public Member Functions inherited from QDP::HDF5
static bool check_exists (const std::string &filename)
Protected Member Functions inherited from QDP::HDF5
 HDF5 (const long int &stripesizee=-1, const long int &maxalign=0)
std::string getNameById (hid_t id) const
void tokenize (const ::std::string &str, ::std::vector< ::std::string > &tokens, const ::std::string &delimiters)
std::vector< std::string > splitPathname (const std::string &name)
bool objectExists (const std::string &name)
bool objectExists (hid_t loc_id, const std::string &name)
std::string objectType (const ::std::string &name)
std::string objectType (hid_t loc_id, const ::std::string &name)
void HDF5_error_exit (const std::string &message)
int prefetchLatticeCoordinates ()
template<class T>
void CvtToLayout (OLattice< T > &field, void *buf, const unsigned int &nodeSites, const unsigned int &elemSize)
template<class T>
void CvtToLayout (multi1d< OLattice< T > > &fieldarray, void *buf, const unsigned int &nodeSites, const unsigned int &arraySize, const unsigned int &elemSize)
template<class T>
void CvtToHost (void *buf, const OLattice< T > &field, const unsigned int &nodeSites, const unsigned int &elemSize)
template<class T>
void CvtToHost (void *buf, const multi1d< OLattice< T > > &fieldarray, const unsigned int &nodeSites, const unsigned int &arraySize, const unsigned int &elemSize)
hid_t createComplexType (const unsigned int &float_size)
bool checkComplexType (const hid_t &type_id, hid_t &base_type_id)
hid_t createColorMatrixType (const hid_t &complex_id, const unsigned int &rank)
bool checkColorMatrixType (const hid_t &type_id, const unsigned int &rank, hid_t &base_type_id)
hid_t createPropagatorType (const hid_t &colmat_id, const unsigned int &spinrank)
bool checkDiracPropagatorType (const hid_t &type_id, const unsigned int &spinrank, const unsigned int &colorrank, hid_t &base_type_id)
template<typename ctype>
void rdAtt (const std::string &obj_name, const std::string &attr_name, ctype &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true)
template<typename ctype>
void rdAtt (const std::string &obj_name, const std::string &attr_name, multi1d< ctype > &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true)
template<typename ctype>
void rd (const std::string &dataname, ctype &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true)
template<typename ctype>
void rd (const std::string &dataname, multi1d< ctype > &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true)
template<typename ctype>
void rd (const std::string &dataname, multi2d< ctype > &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true)
void readPrepare (const std::string &name, hid_t &type_id)
void readPrepareLattice (const std::string &name, hid_t &type_id, multi1d< ullong > &sizes)
void readLattice (const std::string &name, const hid_t &type_id, const hid_t &base_type_id, const ullong &obj_size, const ullong &tot_size, char *buf, bool invert_order=true)
Static Protected Member Functions inherited from QDP::HDF5
static hid_t errorHandler (hid_t errstack, void *unused)
Protected Attributes inherited from QDP::HDF5
hid_t error_stack
hid_t file_id
hid_t file_comm
hid_t current_group
multi1d< int > reordermap
bool isprefetched
long int stripesize
long int maxalign
bool par_init
bool profile
MPI_Comm * mpicomm

Detailed Description

HDF5 reader class.

This is used to read data from an HDF5 file.

Definition at line 954 of file qdp_hdf5.h.

Constructor & Destructor Documentation

◆ HDF5Reader() [1/3]

QDP::HDF5Reader::HDF5Reader ( )

Empty constructor.

◆ HDF5Reader() [2/3]

QDP::HDF5Reader::HDF5Reader ( const long int & stripesize,
const long int & maxalign = 0 )

◆ HDF5Reader() [3/3]

QDP::HDF5Reader::HDF5Reader ( const std::string & filename)

Construct from contents of file.

Opens and reads an XML file.

Parameters
filenameThe name of the file.

◆ ~HDF5Reader()

QDP::HDF5Reader::~HDF5Reader ( )

Destructor:

Member Function Documentation

◆ open()

void QDP::HDF5Reader::open ( const std::string & filename)
virtual

Implements QDP::HDF5.


The documentation for this class was generated from the following file: