|
Celeritas 0.7.0-dev.168+develop.6e17e5869
|
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 const & | at (GeneratorId) |
| Access mutable generator at the given ID. | |
| SPConstGenerator | at (GeneratorId) const |
| Access generator at the given ID. | |
| std::string const & | id_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. | |
Manage classes that generate tracks.
This class keeps track of GeneratorInterface classes.