Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::EventReaderInterface Class Referenceabstract

Abstract base class for reading all primaries from an event. More...

#include <EventIOInterface.hh>

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

Public Types

Type aliases
using VecPrimary = std::vector< Primary >
 
using result_type = VecPrimary
 

Public Member Functions

virtual result_type operator() ()=0
 Read all primaries from a single event.
 
virtual size_type num_events () const =0
 Get total number of events.
 

Protected Member Functions

 CELER_DEFAULT_COPY_MOVE (EventReaderInterface)
 

Detailed Description

Abstract base class for reading all primaries from an event.

Constructor & Destructor Documentation

◆ EventReaderInterface()

celeritas::EventReaderInterface::EventReaderInterface ( )
protecteddefault

Allow construction and assignment only through daughter classes

Member Function Documentation

◆ CELER_DEFAULT_COPY_MOVE()

celeritas::EventReaderInterface::CELER_DEFAULT_COPY_MOVE ( EventReaderInterface  )
protected

Allow construction and assignment only through daughter classes

◆ num_events()

virtual size_type celeritas::EventReaderInterface::num_events ( ) const
pure virtual

◆ operator()()

virtual result_type celeritas::EventReaderInterface::operator() ( )
pure virtual

Read all primaries from a single event.

Implemented in celeritas::EventReader, celeritas::RootEventReader, celeritas::PrimaryGenerator, and celeritas::RootEventSampler.


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