|
dune-geometry 2.12-git
|
Loading...
Searching...
No Matches
type.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
88 inline static unsigned int baseTopologyId ( unsigned int topologyId, int dim, int codim = 1 ) noexcept
547 template< template< GeometryType::Id > class Operation, int dim, GeometryType::Id geometryId = GeometryTypes::vertex >
557 return IfGeometryType< Operation, dim-1, GeometryTypes::prismaticExtension(geometry).toId() >::apply( lowerGeometry, std::forward< Args >( args )... );
559 return IfGeometryType< Operation, dim-1, GeometryTypes::conicalExtension(geometry).toId() >::apply( lowerGeometry, std::forward< Args >( args )... );
STL namespace.
std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
size_type dim() const
Unique label for each type of entities that can occur in DUNE grids.
Definition type.hh:113
constexpr GeometryType(unsigned int topologyId, unsigned int dim)
Constructor, using the topologyId (integer) and the dimension.
Definition type.hh:250
constexpr bool operator<(const GeometryType &other) const
less-than operation for use with maps
Definition type.hh:390
constexpr bool operator!=(const GeometryType &other) const
Check for inequality.
Definition type.hh:385
constexpr bool isPyramid() const
Return true if entity is a pyramid.
Definition type.hh:301
constexpr bool isTetrahedron() const
Return true if entity is a tetrahedron.
Definition type.hh:296
constexpr bool isPrism() const
Return true if entity is a prism.
Definition type.hh:306
constexpr bool isVertex() const
Return true if entity is a vertex.
Definition type.hh:276
constexpr bool operator==(const GeometryType &other) const
Check for equality. This method knows that in dimension 0 and 1 all BasicTypes are equal.
Definition type.hh:374
constexpr Id toId() const
Create an Id representation of this GeometryType.
Definition type.hh:209
constexpr bool isConical(const int &step) const
Return true if entity was constructed with a conical product in the chosen step.
Definition type.hh:334
constexpr unsigned int dim() const
Return dimension of the type.
Definition type.hh:357
constexpr bool isPrismatic(const int &step) const
Return true if entity was constructed with a prismatic product in the chosen step.
Definition type.hh:347
constexpr bool isTriangle() const
Return true if entity is a triangle.
Definition type.hh:286
GeometryType(TopologyType t)
Constructor from static TopologyType class.
Definition type.hh:266
constexpr GeometryType(unsigned int topologyId, unsigned int dim, bool isNone)
Constructor, using the topologyId (integer), the dimension and a flag for type none.
Definition type.hh:241
BasicType
Each entity can be tagged by one of these basic types plus its space dimension.
Definition type.hh:119
@ simplex
Simplicial element in any nonnegative dimension.
Definition type.hh:120
@ extended
Other, more general topology, representable as topologyId.
Definition type.hh:124
@ none
Even more general topology, cannot be specified by a topologyId. Two GeometryTypes with 'none' type a...
Definition type.hh:125
constexpr GeometryType(Id id)
Reconstruct a Geometry type from a GeometryType::Id.
Definition type.hh:221
constexpr bool isCube() const
Return true if entity is a cube of any dimension.
Definition type.hh:321
constexpr GeometryType()
Default constructor, not initializing anything.
Definition type.hh:231
constexpr bool isConical() const
Return true if entity was constructed with a conical product in the last step.
Definition type.hh:326
constexpr bool isLine() const
Return true if entity is a line segment.
Definition type.hh:281
constexpr bool isQuadrilateral() const
Return true if entity is a quadrilateral.
Definition type.hh:291
constexpr bool isPrismatic() const
Return true if entity was constructed with a prismatic product in the last step.
Definition type.hh:339
constexpr unsigned int id() const
Return the topology id of the type.
Definition type.hh:362
constexpr bool isNone() const
Return true if entity is a singular of any dimension.
Definition type.hh:352
constexpr bool isHexahedron() const
Return true if entity is a hexahedron.
Definition type.hh:311
constexpr bool isSimplex() const
Return true if entity is a simplex of any dimension.
Definition type.hh:316
T apply(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8