Celeritas 0.6.0-83+develop.60cd5c38
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::GeneratorRegistry Class Reference

Manage classes that generate tracks. More...

#include <GeneratorRegistry.hh>

Public Types

Type aliases
using SPGenerator = std::shared_ptr< GeneratorInterface >
 
using SPConstGenerator = std::shared_ptr< GeneratorInterface const >
 

Public Member Functions

GeneratorId next_id () const
 Get the next available ID.
 
void insert (SPGenerator generator)
 Register generators.
 
GeneratorId::size_type size () const
 Get the number of defined generators.
 
bool empty () const
 Whether any generators have been registered.
 
SPGenerator constat (GeneratorId)
 Access mutable generator at the given ID.
 
SPConstGenerator at (GeneratorId) const
 Access generator at the given ID.
 
std::string constid_to_label (GeneratorId id) const
 Get the label corresponding to the generator.
 
GeneratorId find (std::string const &label) const
 Find the generator corresponding to a label.
 
void reset (AuxStateVec &) const
 Reset the generator counters if the loop aborted early.
 

Detailed Description

Manage classes that generate tracks.

This class keeps track of GeneratorInterface classes.


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