|
dune-geometry 2.12-git
|
Loading...
Searching...
No Matches
typeindex.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
158 return Dune::Hybrid::switchCases(allIndices, LocalGeometryTypeIndex::index(gt), callWithId, fallBack);
A unique label for each type of element that can occur in a grid.
constexpr decltype(auto) switchCases(const Cases &cases, const Value &value, Branches &&branches, ElseBranch &&elseBranch)
size_type dim() const
std::ptrdiff_t index() const
constexpr index_constant< 0 > _0
Unique label for each type of entities that can occur in DUNE grids.
Definition type.hh:114
constexpr Id toId() const
Create an Id representation of this GeometryType.
Definition type.hh:210
Compute per-dimension indices for geometry types.
Definition typeindex.hh:25
static constexpr std::size_t size(std::size_t dim)
Compute total number of geometry types for the given dimension.
Definition typeindex.hh:61
static constexpr GeometryType type(std::size_t dim, std::size_t index)
compute the geometry type for the given local index and dimension
Definition typeindex.hh:79
static constexpr std::size_t index(const GeometryType >)
Compute the index for the given geometry type within its dimension.
Definition typeindex.hh:73
Compute indices for geometry types, taking the dimension into account.
Definition typeindex.hh:90
static constexpr std::size_t index(const GeometryType >)
Compute the index for the given geometry type over all dimensions.
Definition typeindex.hh:138
static constexpr std::size_t offset(std::size_t dim)
Compute the starting index for a given dimension including irregular geometry types.
Definition typeindex.hh:113
static constexpr std::size_t size(std::size_t maxdim)
Compute total number of geometry types up to and including the given dimension.
Definition typeindex.hh:125
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8