An abstract class to create one iteration of data per thread. More...
#include <DatasetFiller.hpp>
Public Types | |
| using | resultType = T |
Public Member Functions | |
| DatasetFiller (Extent::value_type numberOfItems=0) | |
| virtual | ~DatasetFiller ()=default |
| This class will be derived from. | |
| virtual std::shared_ptr< T > | produceData ()=0 |
| Create a shared pointer of m_numberOfItems items of type T. | |
| virtual void | setNumberOfItems (Extent::value_type numberOfItems)=0 |
| Set number of items to be produced. | |
Protected Attributes | |
| Extent::value_type | m_numberOfItems |
An abstract class to create one iteration of data per thread.
| T | The type of data to produce. |
|
pure virtual |
Create a shared pointer of m_numberOfItems items of type T.
Should take roughly the same amount of time per call as long as m_numberOfItems does not change.
Implemented in openPMD::RandomDatasetFiller< Distr, T >.
|
pure virtual |
Set number of items to be produced.
| numberOfItems | The number. |
Implemented in openPMD::RandomDatasetFiller< Distr, T >.