1 #ifndef DUNE_GEOGRID_CAPABILITIES_HH
2 #define DUNE_GEOGRID_CAPABILITIES_HH
6 #include <dune/common/forloop.hh>
17 namespace Capabilities
23 template<
class HostGr
id,
class CoordFunction,
class Allocator >
31 template<
class HostGr
id,
class CoordFunction,
class Allocator,
int codim >
34 static const bool v =
true;
38 template<
class HostGr
id,
class CoordFunction,
class Allocator >
45 template<
class HostGr
id,
class CoordFunction,
class Allocator,
int codim >
52 template<
class HostGr
id,
class CoordFunction,
class Allocator >
58 template<
class HostGr
id,
class CoordFunction,
class Allocator >
64 template<
class HostGr
id,
class CoordFunction,
class Allocator >
70 template<
class HostGr
id,
class CoordFunction,
class Allocator >
73 static const bool v =
false;
76 template<
class HostGr
id,
class CoordFunction,
class Allocator >
79 static const bool v =
false;
88 template<
class Gr
id,
int codim >
91 template<
class Gr
id,
int codim >
92 struct hasHostEntity< const
Grid, codim >
94 static const bool v = hasHostEntity< Grid, codim >::v;
97 template<
class HostGr
id,
class CoordFunction,
class Allocator,
int codim >
98 struct hasHostEntity<
GeometryGrid< HostGrid, CoordFunction, Allocator >, codim >
108 template<
class Gr
id >
113 template<
int codim >
120 Dune::ForLoop< BuildCache, 0, dimension >::apply( hasHostEntity_ );
132 assert( (codim >= 0) && (codim <= dimension) );
133 return instance().hasHostEntity_[ codim ];
137 template<
class Gr
id >
138 template<
int codim >
143 hasHostEntity[ codim ] = Capabilities::hasHostEntity< Grid, codim >::v;
151 #endif // #ifndef DUNE_GEOGRID_CAPABILITIES_HH