simpleinterpolation.hh
Go to the documentation of this file.00001
00002
00003 #ifndef DUNE_SIMPLEINTERPOLATION_HH
00004 #define DUNE_SIMPLEINTERPOLATION_HH
00005
00006 #include <vector>
00007
00008 #include "interpolation.hh"
00009
00010 namespace Dune
00011 {
00012
00014
00017 template<class LI>
00018 class SimpleInterpolation
00019 : public InterpolationInterface<SimpleInterpolation<LI> >
00020 {
00022 const LI& li;
00023
00024 public:
00026
00032 SimpleInterpolation(const LI& li_)
00033 : li(li_)
00034 {}
00035
00037
00047 template<typename F, typename C>
00048 void interpolate (const F& f, std::vector<C>& out) const
00049 {
00050 li.interpolate(f, out);
00051 }
00052 };
00053
00054 }
00055
00056 #endif // DUNE_SIMPLEINTERPOLATION_HH