Celeritas
0.5.0-56+6b053cd
|
Manage auxiliary-added parameter classes. More...
#include <AuxParamsRegistry.hh>
Public Types | |
Type aliases | |
using | SPParams = std::shared_ptr< AuxParamsInterface > |
using | SPConstParams = std::shared_ptr< AuxParamsInterface const > |
Public Member Functions | |
AuxId | next_id () const |
Get the next available ID. | |
void | insert (SPParams params) |
Register auxiliary parameters. | |
AuxId::size_type | size () const |
Get the number of defined params. | |
SPParams const & | at (AuxId) |
Access mutable params at the given ID. | |
SPConstParams | at (AuxId) const |
Access params at the given ID. | |
std::string const & | id_to_label (AuxId id) const |
Get the label corresponding to auxiliary params. | |
AuxId | find (std::string const &label) const |
Find the auxiliary params corresponding to an label. | |
Manage auxiliary-added parameter classes.
An instance of this class can be added to shared problem data so that users (and other parts of Celeritas) can share arbitrary information between parts of the code and create independent state data for each stream.