Celeritas 0.7.0-dev.79+develop.b3dc2e108
|
Apply a functor to a type-deleted local surface. More...
#include <LocalSurfaceVisitor.hh>
Public Types | |
Type aliases | |
using | ParamsRef = NativeCRef< OrangeParamsData > |
Public Member Functions | |
CELER_FUNCTION | LocalSurfaceVisitor (ParamsRef const ¶ms, SurfacesRecord const &local_surfaces) |
Construct from ORANGE data and local surfaces. | |
CELER_FUNCTION | LocalSurfaceVisitor (ParamsRef const ¶ms, SimpleUnitId unit) |
Construct from ORANGE data with surfaces from a simple unit. | |
template<class F > | |
CELER_FUNCTION decltype(auto) | operator() (F &&typed_visitor, LocalSurfaceId t) |
Apply a functor to a type-deleted local surface.
An instance of this class is like std::visit
but accepting a LocalSurfaceId
rather than a std::variant
.
Example:
|
inline |
Construct from ORANGE data and local surfaces.
This is meant to be called from inside a simple unit tracker.