Dune Core Modules (2.6.0)

Dune::LocalGeometryTypeIndex Class Reference

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

#include <dune/geometry/typeindex.hh>

Static Public Member Functions

static constexpr std::size_t size (std::size_t dim)
 Compute total number of geometry types for the given dimension. More...
 
static constexpr std::size_t index (const GeometryType &gt)
 Compute the index for the given geometry type within its dimension. More...
 
static constexpr GeometryType type (std::size_t dim, std::size_t index)
 compute the geometry type for the given local index and dimension
 

Detailed Description

Compute per-dimension indices for geometry types.

Member Function Documentation

◆ index()

static constexpr std::size_t Dune::LocalGeometryTypeIndex::index ( const GeometryType gt)
inlinestaticconstexpr

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::FloatCmp::gt().

Referenced by Dune::GlobalGeometryTypeIndex::index(), and type().

◆ size()

static constexpr std::size_t Dune::LocalGeometryTypeIndex::size ( std::size_t  dim)
inlinestaticconstexpr

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:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)