dune-common  2.2.0
Static Public Member Functions | List of all members
Dune::LocalGeometryTypeIndex Class Reference

Compute per-dimension indices for geometry types. More...

#include <dune/common/geometrytypeindex.hh>

Static Public Member Functions

static std::size_t size (std::size_t dim)
 compute total number of geometry types for the given dimension
static std::size_t index (const GeometryType &gt)
 compute the index for the given geometry type within its dimension

Detailed Description

Compute per-dimension indices for geometry types.

Member Function Documentation

static std::size_t Dune::LocalGeometryTypeIndex::index ( const GeometryType gt)
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().

static std::size_t Dune::LocalGeometryTypeIndex::size ( std::size_t  dim)
inlinestatic

compute total number of geometry types for the given dimension

This includes irregular geometry types such as "None".


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