dune-geometry  2.2.0
Static Public Member Functions | Static Public Attributes
Dune::GenericGeometry::DuneGeometryTypeProvider< dim, linetype > Class Template Reference

dynamically convert a generic topology type into a GeometryType More...

#include <dune/geometry/genericgeometry/conversion.hh>

List of all members.

Static Public Member Functions

static const GeometryTypetype (unsigned int topologyId)
 obtain a Geometry type from a topology id

Static Public Attributes

static const unsigned int dimension = dim
 dimension of the topologies to be converted
static const unsigned int numTopologies = (1 << dimension)
 number of possible topologies

Detailed Description

template<unsigned int dim, GeometryType::BasicType linetype>
class Dune::GenericGeometry::DuneGeometryTypeProvider< dim, linetype >

dynamically convert a generic topology type into a GeometryType

Template Parameters:
dimdimension of the topologies to be converted
linetypebasic geometry type to assign to a line (either simplex or cube)
Note:
After 3D not all geometries are simplices, pyramids, prisms or cubes so that no meaningful GeometryType is available; therefore none is returned.

Member Function Documentation

template<unsigned int dim, GeometryType::BasicType linetype>
static const GeometryType& Dune::GenericGeometry::DuneGeometryTypeProvider< dim, linetype >::type ( unsigned int  topologyId) [inline, static]

obtain a Geometry type from a topology id

Parameters:
[in]topologyIdid of the topology to be converted
Returns:
GeometryType associated with the given topology id

References Dune::GenericGeometry::DuneGeometryTypeProvider< dim, linetype >::numTopologies.


Member Data Documentation

template<unsigned int dim, GeometryType::BasicType linetype>
const unsigned int Dune::GenericGeometry::DuneGeometryTypeProvider< dim, linetype >::dimension = dim [static]

dimension of the topologies to be converted

template<unsigned int dim, GeometryType::BasicType linetype>
const unsigned int Dune::GenericGeometry::DuneGeometryTypeProvider< dim, linetype >::numTopologies = (1 << dimension) [static]

The documentation for this class was generated from the following file: