dune-geometry
2.4
|
Compute per-dimension indices for geometry types. More...
#include <dune/geometry/typeindex.hh>
Static Public Member Functions | |
static DUNE_CONSTEXPR std::size_t | size (std::size_t dim) |
Compute total number of geometry types for the given dimension. More... | |
static std::size_t | index (const GeometryType >) |
Compute the index for the given geometry type within its dimension. More... | |
static GeometryType | type (std::size_t dim, std::size_t index) |
compute the geometry type for the given local index and dimension More... | |
Compute per-dimension indices for geometry types.
|
inlinestatic |
Compute the index for the given geometry type within its dimension.
Geometry types from different dimensions my get the same index. If that is not what you want, maybe you should look at GlobalGeometryTypeIndex.
References Dune::GeometryType::dim(), Dune::GeometryType::id(), and Dune::GeometryType::isNone().
Referenced by Dune::GlobalGeometryTypeIndex::index().
|
inlinestatic |
Compute total number of geometry types for the given dimension.
This includes irregular geometry types such as "None".
|
inlinestatic |
compute the geometry type for the given local index and dimension
References Dune::GeometryType::makeNone().