Celeritas  0.5.0-56+6b053cd
Public Member Functions | Static Public Member Functions | List of all members
celeritas::optical::ImportedModels Class Reference

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< ImportedModelsfrom_import (ImportData const &)
 Construct list of imported model from imported data.
 

Detailed Description

A collection of imported optical models.

Constructs a map of built-in optical model classes to their imported model IDs.

Member Function Documentation

◆ builtin_model_id()

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.


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