dune-localfunctions  2.1.1
prismp1localcoefficients.hh
Go to the documentation of this file.
00001 // -*- tab-width: 4; indent-tabs-mode: nil -*-
00002 #ifndef DUNE_PRISMP1LOCALCOEFFICIENTS_HH
00003 #define DUNE_PRISMP1LOCALCOEFFICIENTS_HH
00004 
00005 #include <cstddef>
00006 #include <iostream>
00007 #include <vector>
00008 
00009 #include <dune/localfunctions/common/localkey.hh>
00010 
00011 namespace Dune 
00012 {
00013 
00020   class PrismP1LocalCoefficients
00021   {
00022   public:
00024         PrismP1LocalCoefficients () : li(6)
00025         {
00026           for (std::size_t i=0; i<6; i++)
00027                 li[i] = LocalKey(i,3,0);
00028         }
00029 
00031         std::size_t size () const
00032         {
00033           return 6;
00034         }
00035 
00037         const LocalKey& localKey (std::size_t i) const
00038         {
00039           return li[i];
00040         } 
00041 
00042   private:
00043         std::vector<LocalKey> li;
00044   };
00045 
00046 }
00047 
00048 #endif