Celeritas 0.7.0-dev.79+develop.b3dc2e108
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
celeritas::VolumeMapFiller< T > Class Template Reference

Helper class to fill a volume collection from a map. More...

#include <VolumeCollectionBuilder.hh>

Public Types

using mapped_type = typename T::mapped_type
 

Public Member Functions

 VolumeMapFiller (T const &m)
 Construct with map to use.
 
mapped_type operator() (VolumeId vol_id) const
 Get the value from a volume ID or default if not in the map.
 

Detailed Description

template<class T>
class celeritas::VolumeMapFiller< T >

Helper class to fill a volume collection from a map.

Example:

host_data.detector
= build_volume_collection<DetectorId>(geo, VolumeMapFiller{det_ids});
Helper class to fill a volume collection from a map.
Definition VolumeCollectionBuilder.hh:75

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