Celeritas 0.7.0-dev.79+develop.b3dc2e108
Loading...
Searching...
No Matches
Classes | Functions
VolumeCollectionBuilder.hh File Reference
#include <type_traits>
#include "corecel/Types.hh"
#include "corecel/cont/Range.hh"
#include "corecel/data/CollectionBuilder.hh"
#include "Types.hh"
This graph shows which files directly or indirectly include this file:

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, ImplVolumeIdceleritas::build_volume_collection (G const &geo, F &&fill_value)
 Create a "collection" that maps from ImplVolumeId to a value.
 

Function Documentation

◆ build_volume_collection()

template<class T , class G , class F >
Collection< T, Ownership::value, MemSpace::host, ImplVolumeId > celeritas::build_volume_collection ( G const geo,
F &&  fill_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

T(*)(VolumeId)

will be called for every ImplVolumeId in the geometry that corresponds to a canonical volume. The resulting value will be assigned to the collection.