dune-geometry
2.3beta2
|
will there be only one geometry type for a dimension? More...
#include <dune/geometry/genericgeometry/geometrytraits.hh>
Static Public Attributes | |
static const bool | v = false |
static const unsigned int | topologyId = ~0u |
will there be only one geometry type for a dimension?
If multiple geometry types are requested for a dimension, all methods of the geometry implementation are virtual (but no other branching for the geometry type is used).
If there is only a single geometry type for a certain dimension, hasSingleGeometryType::v can be set to true. In this case, virtual methods are not necessary and the geometries are a little faster.
If hasSingleGeometryType::v is set to true, an additional parameter topologyId is required. Here's an example:
|
static |
|
static |