simpleinterpolation.hh

Go to the documentation of this file.
00001 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002 // vi: set et ts=4 sw=2 sts=2:
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
Generated on Sat Apr 24 11:15:35 2010 for dune-localfunctions by  doxygen 1.6.3