Field3D
SparseDataReader Class Reference

This class gets used by SparseFieldIO and SparseFileManager to read the block data. On creation it will open the data set and not close it until the object is destroyed. More...

#include <SparseDataReader.h>

List of all members.

Public Member Functions

void readBlock (int idx, Data_T &result)
 Reads a block, storing the data in result, which is assumed to contain enough room for m_valuesPerBlock entries.
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 enough room for m_valuesPerBlock entries.
 SparseDataReader (hid_t location, int valuesPerBlock, int occupiedBlocks)
 Constructor. Requires knowledge of the Hdf5 location where data is stored.

Private Attributes

const std::string k_dataStr
Hdf5Util::H5ScopedDopen m_dataSet
Hdf5Util::H5ScopedDget_type m_dataType
Hdf5Util::H5ScopedDget_space m_fileDataSpace
Hdf5Util::H5ScopedScreate m_memDataSpace
int m_valuesPerBlock

Detailed Description

This class gets used by SparseFieldIO and SparseFileManager to read the block data. On creation it will open the data set and not close it until the object is destroyed.


Constructor & Destructor Documentation

SparseDataReader::SparseDataReader ( hid_t  location,
int  valuesPerBlock,
int  occupiedBlocks 
)

Constructor. Requires knowledge of the Hdf5 location where data is stored.


Member Function Documentation

void SparseDataReader::readBlock ( int  idx,
Data_T &  result 
)

Reads a block, storing the data in result, which is assumed to contain enough room for m_valuesPerBlock entries.

void SparseDataReader::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 enough room for m_valuesPerBlock entries.

Referenced by SparseFieldIO::readData().


Member Data Documentation

const std::string SparseDataReader::k_dataStr [private]

Definition at line 99 of file SparseDataReader.h.

Referenced by SparseDataReader< Data_T >::SparseDataReader().


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