template<class real_type>
struct dg::geo::RealCylindricalFunctor< real_type >
Inject both 2d and 3d operator()
to a 2d functor.
The purpose of this class is to extend any 2d Functor to a 3d Functor by defining \( f(x,y,z) := f(x,y)\). This class is especially useful in an interface since any 2d functor can be converted to it (type erasure property of the std::function
that we use to implement this class).
- Note
- If you want to write a functor that is both 2d and 3d directly, it is easier to derive from
aCylindricalFunctor
- See also
- this class is an alternative to
aCylindricalFunctor
and aCylindricalFunctor
can be converted to this class