|
Celeritas 0.7.0-dev.252+develop.478e7a17
|
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 | |
| TransformVisitor (TransformRecords const &transforms, Reals const &reals) | |
| Construct manually from required data. | |
| TransformVisitor (ParamsRef const ¶ms) | |
| Construct from ORANGE data. | |
| template<class F > | |
| 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: