Celeritas 0.7.0-dev.127+develop.e63889793
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::JsonEventReader Class Reference

Read file generated by JsonEventWriter . More...

#include <JsonEventReader.hh>

Inheritance diagram for celeritas::JsonEventReader:
Inheritance graph
[legend]

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.
 
 CELER_DELETE_COPY_MOVE (JsonEventReader)
 Prevent copying and moving.
 
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
 CELER_DEFAULT_COPY_MOVE (EventReaderInterface)
 

Detailed Description

Read file generated by JsonEventWriter .

Member Function Documentation

◆ num_events()

size_type celeritas::JsonEventReader::num_events ( ) const
inlinefinalvirtual

Get total number of events.

Implements celeritas::EventReaderInterface.

◆ operator()()

auto celeritas::JsonEventReader::operator() ( )
finalvirtual

Read single event from the file.

Implements celeritas::EventReaderInterface.


The documentation for this class was generated from the following files: