44#ifndef _INCLUDED_Field3D_SparseDataReader_H_
45#define _INCLUDED_Field3D_SparseDataReader_H_
69template <
class Data_T>
106template <
class Data_T>
109 : m_location(location),
110 m_valuesPerBlock(valuesPerBlock),
111 m_occupiedBlocks(occupiedBlocks),
119template <
class Data_T>
155 if (
dims[1] !=
static_cast<hsize_t>(m_valuesPerBlock)) {
159 if (
dims[0] !=
static_cast<hsize_t>(m_occupiedBlocks))
170 count[1] = m_valuesPerBlock;
177 boost::lexical_cast<std::string>(
idx));
187template <
class Data_T>
224 if (
dims[1] !=
static_cast<hsize_t>(m_valuesPerBlock)) {
228 if (
dims[0] !=
static_cast<hsize_t>(m_occupiedBlocks))
239 count[1] = m_valuesPerBlock;
245 boost::lexical_cast<std::string>(
idxLo));
283 boost::lexical_cast<std::string>(
idxLo));
Contains various utility functions for Hdf5.
FIELD3D_NAMESPACE_OPEN FIELD3D_API boost::recursive_mutex g_hdf5Mutex
boost::recursive_mutex::scoped_lock GlobalLock
Contains the Log class which can be used to redirect output to an arbitrary destination.
Scoped object - opens a dataset on creation and closes it on destruction.
Scoped object - opens a dataset on creation and closes it on destruction.
Scoped object - opens a dataset on creation and closes it on destruction.
Scoped object - creates a dataspace on creation and closes it on destruction.
void create(H5S_class_t type)
This class gets used by SparseFieldIO and SparseFileManager to read the block data....
void readBlockList(int idx, const std::vector< Data_T * > &memoryList)
Reads a series of blocks, storing each block of data in memoryList, which is assumed to contain enoug...
void readBlock(int idx, Data_T &result)
Reads a block, storing the data in result, which is assumed to contain enough room for m_valuesPerBlo...
SparseDataReader(hid_t location, int valuesPerBlock, int occupiedBlocks)
Constructor. Requires knowledge of the Hdf5 location where data is stored.
const std::string k_dataStr
Namespace for Exception objects.
Contains utility functions and classes for Hdf5 files.
#define FIELD3D_NAMESPACE_HEADER_CLOSE