IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 220ee1a9 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

made approximator a template parameter

parent 04164a42
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,11 @@
namespace corsika::environment {
template <class TDerivableRho>
// TODO make LinearApproximator a template parameter to facilitate exchangability
class DensityFunction : public LinearApproximator<DensityFunction<TDerivableRho>> {
friend class LinearApproximator<DensityFunction<TDerivableRho>>;
template <class TDerivableRho,
template <typename> class TApproximator = LinearApproximator>
class DensityFunction
: public TApproximator<DensityFunction<TDerivableRho, TApproximator>> {
friend class TApproximator<DensityFunction<TDerivableRho, TApproximator>>;
TDerivableRho fRho; //!< functor for density
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment