|
OpenGM
2.3.x
Discrete Graphical Model Library
|
HDF5 import/export support. More...
Enumerations | |
| enum | FileAccessMode { READ_ONLY, READ_WRITE } |
| enum | HDF5Version { DEFAULT_HDF5_VERSION, LATEST_HDF5_VERSION } |
Functions | |
| hid_t | createFile (const std::string &filename, HDF5Version hdf5version) |
| Create an HDF5 file. More... | |
| hid_t | openFile (const std::string &filename, FileAccessMode fileAccessMode, HDF5Version hdf5version) |
| Open an HDF5 file. More... | |
| void | closeFile (const hid_t &handle) |
| Close an HDF5 file. More... | |
| hid_t | createGroup (const hid_t &parentHandle, const std::string &groupName) |
| Create an HDF5 group. More... | |
| hid_t | openGroup (const hid_t &parentHandle, const std::string &groupName) |
| Open an HDF5 group. More... | |
| void | closeGroup (const hid_t &handle) |
| Close an HDF5 group. More... | |
| template<class T > | |
| void | save (const hid_t &groupHandle, const std::string &datasetName, const Marray< T > &in) |
| Save an Marray as an HDF5 dataset. More... | |
| template<class T , bool isConst> | |
| void | save (const hid_t &groupHandle, const std::string &datasetName, const View< T, isConst > &in) |
| Save a View as an HDF5 dataset. More... | |
| template<class T > | |
| void | save (const hid_t &groupHandle, const std::string &datasetName, const std::vector< T > &in) |
| Save an std::vector as an HDF5 dataset. More... | |
| template<class T , class BaseIterator , class ShapeIterator > | |
| void | saveHyperslab (const hid_t &groupHandle, const std::string &datasetName, BaseIterator baseBegin, BaseIterator baseEnd, ShapeIterator shapeBegin, const Marray< T > &in) |
| Save an Marray as a hyperslab into an HDF5 dataset. More... | |
| template<class T , class ShapeIterator > | |
| void | create (const hid_t &groupHandle, const std::string &datasetName, ShapeIterator begin, ShapeIterator end, CoordinateOrder coordinateOrder) |
| Create and close an HDF5 dataset to store Marray data. More... | |
| template<class T > | |
| void | load (const hid_t &groupHandle, const std::string &datasetName, Marray< T > &out) |
| Load an Marray from an HDF5 dataset. More... | |
| template<class T > | |
| void | loadShape (const hid_t &groupHandle, const std::string &datasetName, Vector< T > &out) |
| Load the shape of an HDF5 dataset. More... | |
| template<class T , class BaseIterator , class ShapeIterator > | |
| void | loadHyperslab (const hid_t &groupHandle, const std::string &datasetName, BaseIterator baseBegin, BaseIterator baseEnd, ShapeIterator shapeBegin, Marray< T > &out) |
| Load a hyperslab from an HDF5 dataset into an Marray. More... | |
Variables | |
| const char | reverseShapeAttributeName [14] = "reverse-shape" |
HDF5 import/export support.
| Enumerator | |
|---|---|
| READ_ONLY | |
| READ_WRITE | |
Definition at line 49 of file marray_hdf5.hxx.
| Enumerator | |
|---|---|
| DEFAULT_HDF5_VERSION | |
| LATEST_HDF5_VERSION | |
Definition at line 50 of file marray_hdf5.hxx.
|
inline |
Close an HDF5 file.
| handle | Handle to the HDF5 file. |
Definition at line 810 of file marray_hdf5.hxx.
Here is the caller graph for this function:
|
inline |
Close an HDF5 group.
| handle | HDF5 handle on group to close. |
Definition at line 870 of file marray_hdf5.hxx.
Here is the caller graph for this function:| void marray::hdf5::create | ( | const hid_t & | groupHandle, |
| const std::string & | datasetName, | ||
| ShapeIterator | begin, | ||
| ShapeIterator | end, | ||
| CoordinateOrder | coordinateOrder | ||
| ) |
Create and close an HDF5 dataset to store Marray data.
| groupHandle | Handle of the parent HDF5 file or group. |
| datasetName | Name of the HDF5 dataset. |
| begin | Iterator to the beginning of a sequence that determines the shape of the dataset. |
| end | Iterator to the end of a sequence that determines the shape of the dataset. |
| coordinateOrder | Coordinate order of the Marray. |
Definition at line 174 of file marray_hdf5.hxx.
|
inline |
Create an HDF5 file.
| filename | Name of the file. |
| hdf5version | HDF5 version tag. |
Definition at line 747 of file marray_hdf5.hxx.
Here is the caller graph for this function:
|
inline |
Create an HDF5 group.
| parentHandle | HDF5 handle on the parent group or file. |
| groupName | Name of the group. |
Definition at line 827 of file marray_hdf5.hxx.
Here is the caller graph for this function:| void marray::hdf5::load | ( | const hid_t & | groupHandle, |
| const std::string & | datasetName, | ||
| Marray< T > & | out | ||
| ) |
Load an Marray from an HDF5 dataset.
| groupHandle | Handle of the parent HDF5 file or group. |
| datasetName | Name of the HDF5 dataset. |
| out | Marray. |
Definition at line 396 of file marray_hdf5.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:| void marray::hdf5::loadHyperslab | ( | const hid_t & | groupHandle, |
| const std::string & | datasetName, | ||
| BaseIterator | baseBegin, | ||
| BaseIterator | baseEnd, | ||
| ShapeIterator | shapeBegin, | ||
| Marray< T > & | out | ||
| ) |
Load a hyperslab from an HDF5 dataset into an Marray.
| groupHandle | Handle of the parent HDF5 file or group. |
| datasetName | Name of the HDF5 dataset. |
| baseBegin | Iterator to the beginning of the sequence that determines the first coordinate of the hyperslab. |
| baseEnd | Iterator to the end of the sequence that determines the first coordinate of the hyperslab. |
| shapeBegin | Iterator to the beginning of the sequence that determines the shape of the hyperslab. |
| out | Marray. |
Definition at line 526 of file marray_hdf5.hxx.
| void marray::hdf5::loadShape | ( | const hid_t & | groupHandle, |
| const std::string & | datasetName, | ||
| Vector< T > & | out | ||
| ) |
Load the shape of an HDF5 dataset.
| groupHandle | Handle of the parent HDF5 file or group. |
| datasetName | Name of the HDF5 dataset. |
| out | Shape. |
Definition at line 470 of file marray_hdf5.hxx.
Here is the call graph for this function:
|
inline |
Open an HDF5 file.
| filename | Name of the file. |
| fileAccessMode | File access mode. |
| hdf5version | HDF5 version tag. |
Definition at line 778 of file marray_hdf5.hxx.
Here is the caller graph for this function:
|
inline |
Open an HDF5 group.
| parentHandle | HDF5 handle on the parent group or file. |
| groupName | Name of the group. |
Definition at line 850 of file marray_hdf5.hxx.
Here is the caller graph for this function:| void marray::hdf5::save | ( | const hid_t & | groupHandle, |
| const std::string & | datasetName, | ||
| const Marray< T > & | in | ||
| ) |
Save an Marray as an HDF5 dataset.
| groupHandle | Handle of the parent HDF5 file or group. |
| datasetName | Name of the HDF5 dataset. |
| in | Marray. |
Definition at line 265 of file marray_hdf5.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Save a View as an HDF5 dataset.
| groupHandle | Handle of the parent HDF5 file or group. |
| datasetName | Name of the HDF5 dataset. |
| in | View. |
Definition at line 356 of file marray_hdf5.hxx.
Here is the call graph for this function:| void marray::hdf5::save | ( | const hid_t & | groupHandle, |
| const std::string & | datasetName, | ||
| const std::vector< T > & | in | ||
| ) |
Save an std::vector as an HDF5 dataset.
| groupHandle | Handle of the parent HDF5 file or group. |
| datasetName | Name of the HDF5 dataset. |
| in | std::vector. |
Definition at line 374 of file marray_hdf5.hxx.
Here is the call graph for this function:| void marray::hdf5::saveHyperslab | ( | const hid_t & | groupHandle, |
| const std::string & | datasetName, | ||
| BaseIterator | baseBegin, | ||
| BaseIterator | baseEnd, | ||
| ShapeIterator | shapeBegin, | ||
| const Marray< T > & | in | ||
| ) |
Save an Marray as a hyperslab into an HDF5 dataset.
| groupHandle | Handle of the parent HDF5 file or group. |
| datasetName | Name of the HDF5 dataset. |
| baseBegin | Iterator to the beginning of the sequence that determines the first coordinate of the hyperslab. |
| baseEnd | Iterator to the end of the sequence that determines the first coordinate of the hyperslab. |
| shapeBegin | Iterator to the beginning of the sequence that determines the shape of the hyperslab. |
| in | Marray. |
Definition at line 641 of file marray_hdf5.hxx.
Here is the call graph for this function:| const char marray::hdf5::reverseShapeAttributeName[14] = "reverse-shape" |
Definition at line 45 of file marray_hdf5.hxx.
1.8.9.1