3 #ifndef DUNE_GEOMETRY_GENERICGEOMETRY_CONVERSION_HH
4 #define DUNE_GEOMETRY_GENERICGEOMETRY_CONVERSION_HH
6 #include <dune/common/visibility.hh>
15 namespace GenericGeometry
29 template<
class Topology, GeometryType::BasicType linetype >
32 template< GeometryType::BasicType linetype >
37 "Parameter linetype may only be a simplex or a cube.");
40 static const unsigned int dimension = 0;
44 template<
class BaseTopology, GeometryType::BasicType linetype >
51 "Parameter linetype may only be a simplex or a cube.");
55 "Only prisms over simplices or cubes can be converted.");
58 static const unsigned int dimension = DuneBaseGeometryType::dimension + 1;
67 template<
class BaseTopology, GeometryType::BasicType linetype >
74 "Parameter linetype may only be a simplex or a cube.");
78 "Only pyramids over simplices or cubes can be converted.");
81 static const unsigned int dimension = DuneBaseGeometryType::dimension + 1;
106 template<
unsigned int dim, GeometryType::BasicType linetype >
116 GeometryType types_[ (dimension>=1) ? numTopologies / 2 : numTopologies ];
133 assert( topologyId < numTopologies );
134 return instance().types_[ topologyId / 2 ];
142 template< GeometryType :: BasicType type,
unsigned int dim >
145 template<
unsigned int dim >