Field3D
|
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>
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. More... | |
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. More... | |
SparseDataReader (hid_t location, int valuesPerBlock, int occupiedBlocks) | |
Constructor. Requires knowledge of the Hdf5 location where data is stored. More... | |
Private Attributes | |
const std::string | k_dataStr |
hid_t | m_location |
int | m_occupiedBlocks |
int | m_valuesPerBlock |
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.
Definition at line 70 of file SparseDataReader.h.
SparseDataReader< Data_T >::SparseDataReader | ( | hid_t | location, |
int | valuesPerBlock, | ||
int | occupiedBlocks | ||
) |
Constructor. Requires knowledge of the Hdf5 location where data is stored.
Definition at line 107 of file SparseDataReader.h.
void SparseDataReader< Data_T >::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.
Definition at line 120 of file SparseDataReader.h.
References Hdf5Util::H5ScopedScreate::create(), g_hdf5Mutex, DataTypeTraits< T >::h5type(), Hdf5Util::H5Base::id(), Hdf5Util::H5ScopedDopen::open(), Hdf5Util::H5ScopedDget_space::open(), and Hdf5Util::H5ScopedDget_type::open().
void SparseDataReader< Data_T >::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.
Definition at line 189 of file SparseDataReader.h.
References Hdf5Util::H5ScopedScreate::create(), g_hdf5Mutex, DataTypeTraits< T >::h5type(), Hdf5Util::H5Base::id(), Hdf5Util::H5ScopedDopen::open(), Hdf5Util::H5ScopedDget_space::open(), and Hdf5Util::H5ScopedDget_type::open().
|
private |
Definition at line 94 of file SparseDataReader.h.
|
private |
Definition at line 96 of file SparseDataReader.h.
|
private |
Definition at line 97 of file SparseDataReader.h.
|
private |
Definition at line 99 of file SparseDataReader.h.