|
Celeritas 0.7.0-dev.170+develop.df22d2a88
|
#include <type_traits>#include "corecel/Types.hh"#include "corecel/cont/Range.hh"#include "corecel/data/CollectionBuilder.hh"#include "Types.hh"
Classes | |
| class | celeritas::VolumeMapFiller< T > |
| Helper class to fill a volume collection from a map. More... | |
Functions | |
| template<class T , class G , class F > | |
| Collection< T, Ownership::value, MemSpace::host, ImplVolumeId > | celeritas::build_volume_collection (G const &geo, F &&fill_value) |
| Create a "collection" that maps from ImplVolumeId to a value. | |
|
inline |
Create a "collection" that maps from ImplVolumeId to a value.
This builds collections for runtime execution using a GeoTrackView's impl_volume_id() call, which requires less indirection than volume_id() .
Given a geometry (which is allowed to be GeoParamsInterface ), a function
will be called for every ImplVolumeId in the geometry that corresponds to a canonical volume. The resulting value will be assigned to the collection.