Dune::GenericGeometry::DuneGeometryTypeProvider< dim, linetype > Class Template Reference

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

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

List of all members.

Static Public Member Functions

static const GeometryType & type (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:
dim dimension of the topologies to be converted
linetype basic 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] topologyId id 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:

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].