3#ifndef DUNE_LAGRANGECOEFFICIENTS_HH
4#define DUNE_LAGRANGECOEFFICIENTS_HH
12#include <dune/localfunctions/utility/field.hh>
13#include <dune/localfunctions/common/localkey.hh>
18 template<
template <
class,
unsigned int>
class LP,
19 unsigned int dim,
class F>
20 struct LagrangeCoefficientsFactory
22 static const unsigned int dimension = dim;
23 const typedef LP<F,dim> Object;
24 typedef std::size_t Key;
26 template< GeometryType::Id geometryId >
27 static Object *create (
const Key &order )
29 if (order == 0 || !Object::template supports<geometryId>(order))
31 typedef typename std::remove_const<Object>::type LagrangeCoefficients;
32 LagrangeCoefficients *
object =
new LagrangeCoefficients(order);
33 if ( !object->template build<geometryId>() )
40 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:11
A unique label for each type of element that can occur in a grid.