5#ifndef DUNE_LAGRANGECOEFFICIENTS_HH 
    6#define DUNE_LAGRANGECOEFFICIENTS_HH 
   14#include <dune/localfunctions/utility/field.hh> 
   15#include <dune/localfunctions/common/localkey.hh> 
   20  template< 
template <
class,
unsigned int> 
class LP,
 
   21      unsigned int dim, 
class F>
 
   22  struct LagrangeCoefficientsFactory
 
   24    static const unsigned int dimension = dim;
 
   25    const typedef LP<F,dim> Object;
 
   26    typedef std::size_t Key;
 
   28    template< GeometryType::Id geometryId >
 
   29    static Object *create ( 
const Key &order )
 
   31      if (order == 0 || !Object::template supports<geometryId>(order))
 
   33      typedef typename std::remove_const<Object>::type LagrangeCoefficients;
 
   34      LagrangeCoefficients *
object = 
new LagrangeCoefficients(order);
 
   35      if ( !object->template build<geometryId>() )
 
   42    static void release( Object *
object ) { 
delete object; }
 
Implements a vector constructed from a given type representing a field and a compile-time given size.
 
Dune namespace.
Definition: alignedallocator.hh:13
 
A unique label for each type of element that can occur in a grid.