whitney/edges0.5/coefficients.hh

Go to the documentation of this file.
00001 // -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002 // vi: set ts=8 sw=2 et sts=2:
00003 
00004 #ifndef DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
00005 #define DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
00006 
00007 #include <cstddef>
00008 #include <vector>
00009 
00010 #include <dune/localfunctions/common/localkey.hh>
00011 #include <dune/localfunctions/whitney/edges0.5/common.hh>
00012 
00013 namespace Dune {
00014 
00016   //
00017   // Coefficients
00018   //
00019 
00021 
00027   template<std::size_t dim>
00028   class EdgeS0_5Coefficients : private EdgeS0_5Common<dim> {
00029     using EdgeS0_5Common<dim>::s;
00030 
00031     std::vector<LocalKey> li;
00032 
00033   public:
00035     EdgeS0_5Coefficients() : li(s) {
00036       for(std::size_t i = 0; i < s; i++)
00037         li[i] = LocalKey(i, dim-1, 0);
00038     }
00039 
00041     std::size_t size () const { return s; }
00042 
00044     const LocalKey& localKey(std::size_t i) const { return li[i]; }
00045   };
00046 
00047 } // namespace Dune
00048 
00049 #endif // DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH

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