fire v0.19.0
Framework for sImulation and Reconstruction of Events
|
Type-less handle to the Buffer. More...
Public Member Functions | |
BufferHandle (std::size_t max, HighFive::DataSet s) | |
Define the size of the in-memory buffer and the set we are reading from. More... | |
virtual | ~BufferHandle ()=default |
virtual destructor to pass on to derived types | |
virtual void | load ()=0 |
pure virtual load function to be defined when we know the type More... | |
Protected Attributes | |
std::size_t | max_len_ |
the maximum length of the buffer | |
HighFive::DataSet | set_ |
the HDF5 dataset we are reading from | |
Type-less handle to the Buffer.
This base class allows us to hold the DataSet being read from and hold all of the Buffers of atomic types in a single map.
|
inlineexplicit |
Define the size of the in-memory buffer and the set we are reading from.
[in] | max | maximum number of elements allowed in-memory |
[in] | s | DataSet we are reading from |
|
pure virtual |
pure virtual load function to be defined when we know the type
This isn't used outside of the Buffer class but it is helpful in making sure future developments don't inadvertently abuse the BufferHandle class which is meant to be abstract.
Implemented in fire::io::h5::Reader::Buffer< AtomicType >.