fire v0.19.0
Framework for sImulation and Reconstruction of Events
|
Type-less handle to buffers. More...
Public Member Functions | |
BufferHandle (std::size_t max, HighFive::DataSet s) | |
Define the maximum size of the buffer and the dataset we are writing to. More... | |
virtual | ~BufferHandle ()=default |
virtual destructor so derived Buffer can be destructed properly | |
virtual void | flush ()=0 |
Pure virtual flush mechanism. More... | |
Protected Attributes | |
std::size_t | max_len_ |
the maximum size of the buffer | |
HighFive::DataSet | set_ |
the H5 dataset we are writing to | |
Type-less handle to buffers.
This type-less handle allows us to flush the buffers at the end of processing safely as well as maintain a single map of all buffers we are managing.
|
inlineexplicit |
Define the maximum size of the buffer and the dataset we are writing to.
[in] | max | size of buffer |
[in] | s | dataset to write to |
|
pure virtual |
Pure virtual flush mechanism.
This is designed in the derived Buffer where we know the type of data we are flushing to disk. This is also a helpful virtual method so that we can flush the buffers in Writer::flush without know the types stored within them.
Implemented in fire::io::Writer::Buffer< AtomicType >.