1 #ifndef DUNE_GEOGRID_COORDFUNCTIONCALLER_HH
2 #define DUNE_GEOGRID_COORDFUNCTIONCALLER_HH
16 template<
class HostEntity,
class CoordFunctionInterface >
19 template<
class HostEntity,
class ct,
unsigned int dimD,
unsigned int dimR,
class Impl >
25 static const int codimension = HostEntity::codimension;
32 : hostCorners_( hostEntity ),
33 coordFunction_( coordFunction )
38 coordFunction_.evaluate( hostCorners_.corner( i ), y );
43 return hostCorners_.type();
46 unsigned int numCorners ()
const
48 return hostCorners_.numCorners();
53 const CoordFunctionInterface &coordFunction_;
56 template<
class HostEntity,
class ct,
unsigned int dimR,
class Impl >
67 : hostEntity_( hostEntity ),
68 coordFunction_( coordFunction )
71 void evaluate (
unsigned int i, RangeVector &y )
const
73 coordFunction_.evaluate( hostEntity_, i, y );
78 return hostEntity_.type();
81 unsigned int numCorners ()
const
83 return hostEntity_.geometry().corners();
87 const HostEntity &hostEntity_;
88 const CoordFunctionInterface &coordFunction_;
95 #endif // #ifndef DUNE_GEOGRID_COORDFUNCTIONCALLER_HH