Dune Core Modules (2.3.1)

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

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

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

Static Public Member Functions

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

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

◆ type()

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

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.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 16, 22:29, 2024)