Celeritas
0.5.0-56+6b053cd
|
A collection of imported optical models. More...
#include <ImportedModelAdapter.hh>
Public Types | |
Type aliases | |
using | IMC = ImportModelClass |
using | ImportedModelId = OpaqueId< ImportOpticalModel > |
Public Member Functions | |
ImportedModels (std::vector< ImportOpticalModel > models) | |
Construct directly from imported models. | |
ImportOpticalModel const & | model (ImportedModelId mid) const |
Get model associated with the given identifier. | |
ImportedModelId::size_type | num_models () const |
Get number of imported models. | |
ImportedModelId | builtin_model_id (IMC imc) const |
Get imported model ID for the given built-in model class. More... | |
Static Public Member Functions | |
static std::shared_ptr< ImportedModels > | from_import (ImportData const &) |
Construct list of imported model from imported data. | |
A collection of imported optical models.
Constructs a map of built-in optical model classes to their imported model IDs.
auto celeritas::optical::ImportedModels::builtin_model_id | ( | IMC | imc | ) | const |
Get imported model ID for the given built-in model class.
Returns an invalid ID if the imported model data is not present.