monomlocalcoefficients.hh

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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].