edges02dlocalcoefficients.hh

Go to the documentation of this file.
00001 // -*- tab-width: 4; indent-tabs-mode: nil -*-
00002 #ifndef DUNE_EDGES02DLOCALCOEFFICIENTS_HH
00003 #define DUNE_EDGES02DLOCALCOEFFICIENTS_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 EdgeS02DLocalCoefficients
00021   {
00022   public:
00024     EdgeS02DLocalCoefficients () : li(3)
00025     {
00026       for (int i=0; i<3; i++)
00027         li[i] = LocalKey(i,1,0);
00028     }
00029 
00031     std::size_t size () const
00032     {
00033       return 3;
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 // DUNE_EDGES02DLOCALCOEFFICIENTS_HH
Generated on Sat Apr 24 11:15:33 2010 for dune-localfunctions by  doxygen 1.6.3