|
Celeritas 0.7.0-dev.249+develop.4727547b
|
Read file generated by JsonEventWriter .
More...
#include <JsonEventReader.hh>

Public Types | |
Type aliases | |
| using | SPConstParticles = std::shared_ptr< ParticleParams const > |
| using | result_type = std::vector< Primary > |
Public Types inherited from celeritas::EventReaderInterface | |
| using | VecPrimary = std::vector< Primary > |
| using | result_type = VecPrimary |
Public Member Functions | |
| JsonEventReader (std::string const &filename, SPConstParticles particles) | |
| Construct with input filename. | |
| JsonEventReader (JsonEventReader const &)=delete | |
| Prevent copying and moving. | |
| JsonEventReader & | operator= (JsonEventReader const &)=delete |
| JsonEventReader (JsonEventReader &&)=delete | |
| JsonEventReader & | operator= (JsonEventReader &&)=delete |
| result_type | operator() () final |
| Read single event from the file. | |
| size_type | num_events () const final |
| Get total number of events. | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::EventReaderInterface | |
| EventReaderInterface (EventReaderInterface const &)=default | |
| EventReaderInterface & | operator= (EventReaderInterface const &)=default |
| EventReaderInterface (EventReaderInterface &&)=default | |
| EventReaderInterface & | operator= (EventReaderInterface &&)=default |
Read file generated by JsonEventWriter .
|
inlinefinalvirtual |
Get total number of events.
Implements celeritas::EventReaderInterface.
|
finalvirtual |
Read single event from the file.
Implements celeritas::EventReaderInterface.