ritsuko
Helper utilities for ArtifactDB C++ code
|
Stream a numeric 1-dimensional HDF5 dataset into memory. More...
#include <Stream1dNumericDataset.hpp>
Public Member Functions | |
Stream1dNumericDataset (const H5::DataSet *ptr, hsize_t length, hsize_t buffer_size) | |
Stream1dNumericDataset (const H5::DataSet *ptr, hsize_t buffer_size) | |
Type_ | get () |
std::pair< const Type_ *, size_t > | get_many () |
void | next (size_t jump=1) |
hsize_t | length () const |
hsize_t | position () const |
Stream a numeric 1-dimensional HDF5 dataset into memory.
Type_ | Type to represent the data in memory. |
This streams in a 1-dimensional HDF5 numeric dataset in contiguous blocks, using block sizes defined by pick_1d_block_size()
. Callers can then extract one value at a time or they can acquire the entire block.
|
inline |
ptr | Pointer to a HDF5 dataset handle. |
length | Length of the dataset as a 1-dimensional vector. |
buffer_size | Size of the buffer for holding streamed blocks of values. Larger buffers improve speed at the cost of some memory efficiency. |
|
inline |
Overloaded constructor where the length is automatically determined.
ptr | Pointer to a HDF5 dataset handle. |
buffer_size | Size of the buffer for holding streamed blocks of values. |
|
inline |
|
inline |
next()
.
|
inline |
|
inline |
Advance the position of the stream by jump
.
jump | Number of positions by which to advance the stream. |
|
inline |