dune-pdelab  2.7-git
Static Public Attributes | List of all members
Dune::PDELab::BasicTypeFromDimensionAndTopologyId< dimension, topologyId > Struct Template Reference

Utility TMP for determining the BasicType of a geometry from its dimension and topology id. More...

#include <dune/pdelab/common/topologyutility.hh>

Static Public Attributes

static const bool isCube
 
static const bool isSimplex
 
static const GeometryType::BasicType value
 The BasicType of Topology. More...
 

Detailed Description

template<int dimension, unsigned int topologyId>
struct Dune::PDELab::BasicTypeFromDimensionAndTopologyId< dimension, topologyId >

Utility TMP for determining the BasicType of a geometry from its dimension and topology id.

BasicTypeFromDimensionAndTopologyId invokes GenericGeometry-internal machinery to identify the GeometryType::BasicType that belongs to the given combination of dimension and topologyId.

This information is often useful when writing generic frontends for FiniteElementMaps that are specialized on dimension and BasicType.

Template Parameters
dimensionThe dimension of the geometry.
topologyIdThe topologyId of the geometry.

Member Data Documentation

◆ isCube

template<int dimension, unsigned int topologyId>
const bool Dune::PDELab::BasicTypeFromDimensionAndTopologyId< dimension, topologyId >::isCube
static
Initial value:
=
((topologyId ^ ((1 << dimension)-1)) >> 1 == 0)

◆ isSimplex

template<int dimension, unsigned int topologyId>
const bool Dune::PDELab::BasicTypeFromDimensionAndTopologyId< dimension, topologyId >::isSimplex
static
Initial value:
=
(topologyId | 1) == 1

◆ value

template<int dimension, unsigned int topologyId>
const GeometryType::BasicType Dune::PDELab::BasicTypeFromDimensionAndTopologyId< dimension, topologyId >::value
static
Initial value:
=
isSimplex ? GeometryType::simplex
: (
isCube ? GeometryType::cube
: GeometryType::none
)
static const bool isSimplex
Definition: topologyutility.hh:30
static const bool isCube
Definition: topologyutility.hh:27

The BasicType of Topology.


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