|
Celeritas 0.7.0-dev.170+develop.df22d2a88
|
Apply a functor to a type-deleted transform. More...
#include <TransformVisitor.hh>
Public Types | |
Type aliases | |
| using | ParamsRef = NativeCRef< OrangeParamsData > |
| using | TransformRecords = Items< TransformRecord > |
| using | Reals = Items< real_type > |
Public Member Functions | |
| CELER_FUNCTION | TransformVisitor (TransformRecords const &transforms, Reals const &reals) |
| Construct manually from required data. | |
| CELER_FUNCTION | TransformVisitor (ParamsRef const ¶ms) |
| Construct from ORANGE data. | |
| template<class F > | |
| CELER_FUNCTION decltype(auto) | operator() (F &&typed_visitor, TransformId t) |
Apply a functor to a type-deleted transform.
An instance of this class is like std::visit but accepting a TransformId rather than a std::variant .
Example: