marray_hdf5.hxx File Reference

#include <H5version.h>
#include <cstring>
#include "marray.hxx"
#include <cassert>
#include <stdexcept>
#include <limits>
#include <string>
#include <sstream>
#include <iterator>
#include <vector>
#include <set>
#include <iostream>
#include <memory>
#include <numeric>
#include "hdf5.h"
Include dependency graph for marray_hdf5.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  marray
 

Runtime-flexible multi-dimensional views and arrays.


namespace  marray::hdf5
 

HDF5 import/export support.


Enumerations

enum  marray::hdf5::FileAccessMode { marray::hdf5::READ_ONLY, marray::hdf5::READ_WRITE }
enum  marray::hdf5::HDF5Version { marray::hdf5::DEFAULT_HDF5_VERSION, marray::hdf5::LATEST_HDF5_VERSION }

Functions

hid_t marray::hdf5::createFile (const std::string &filename, HDF5Version hdf5version)
 Create an HDF5 file.
hid_t marray::hdf5::openFile (const std::string &filename, FileAccessMode fileAccessMode, HDF5Version hdf5version)
 Open an HDF5 file.
void marray::hdf5::closeFile (const hid_t &handle)
 Close an HDF5 file.
hid_t marray::hdf5::createGroup (const hid_t &parentHandle, const std::string &groupName)
 Create an HDF5 group.
hid_t marray::hdf5::openGroup (const hid_t &parentHandle, const std::string &groupName)
 Open an HDF5 group.
void marray::hdf5::closeGroup (const hid_t &handle)
 Close an HDF5 group.
template<class T >
void marray::hdf5::save (const hid_t &groupHandle, const std::string &datasetName, const Marray< T > &in)
 Save an Marray as an HDF5 dataset.
template<class T , bool isConst>
void marray::hdf5::save (const hid_t &groupHandle, const std::string &datasetName, const View< T, isConst > &in)
 Save a View as an HDF5 dataset.
template<class T >
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.
template<class T , class BaseIterator , class ShapeIterator >
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.
template<class T , class ShapeIterator >
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.
template<class T >
void marray::hdf5::load (const hid_t &groupHandle, const std::string &datasetName, Marray< T > &out)
 Load an Marray from an HDF5 dataset.
template<class T >
void marray::hdf5::loadShape (const hid_t &groupHandle, const std::string &datasetName, Vector< T > &out)
 Load the shape of an HDF5 dataset.
template<class T , class BaseIterator , class ShapeIterator >
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.

Variables

const char marray::hdf5::reverseShapeAttributeName [14] = "reverse-shape"
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:08 2013 for OpenGM by  doxygen 1.6.3