DUNE PDELab (2.8)
type.hh
Go to the documentation of this file.
88 inline static unsigned int baseTopologyId ( unsigned int topologyId, int dim, int codim = 1 ) noexcept
98// Temporarily a header 'deprecated_topology.hh' is provided which will be removed after the 2.9 release.
137 };
567 template< template< GeometryType::Id > class Operation, int dim, GeometryType::Id geometryId = GeometryTypes::vertex >
577 return IfGeometryType< Operation, dim-1, GeometryTypes::prismaticExtension(geometry).toId() >::apply( lowerGeometry, std::forward< Args >( args )... );
579 return IfGeometryType< Operation, dim-1, GeometryTypes::conicalExtension(geometry).toId() >::apply( lowerGeometry, std::forward< Args >( args )... );
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:124
constexpr GeometryType(unsigned int topologyId, unsigned int dim)
Constructor, using the topologyId (integer) and the dimension.
Definition: type.hh:261
constexpr bool operator<(const GeometryType &other) const
less-than operation for use with maps
Definition: type.hh:402
constexpr bool operator!=(const GeometryType &other) const
Check for inequality.
Definition: type.hh:397
constexpr bool isPyramid() const
Return true if entity is a pyramid.
Definition: type.hh:314
constexpr bool isTetrahedron() const
Return true if entity is a tetrahedron.
Definition: type.hh:309
constexpr bool isPrism() const
Return true if entity is a prism.
Definition: type.hh:319
constexpr bool isVertex() const
Return true if entity is a vertex.
Definition: type.hh:289
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:386
constexpr Id toId() const
Create an Id representation of this GeometryType.
Definition: type.hh:220
constexpr bool isConical(const int &step) const
Return true if entity was constructed with a conical product in the chosen step.
Definition: type.hh:347
constexpr unsigned int dim() const
Return dimension of the type.
Definition: type.hh:370
constexpr bool isPrismatic(const int &step) const
Return true if entity was constructed with a prismatic product in the chosen step.
Definition: type.hh:360
constexpr bool isTriangle() const
Return true if entity is a triangle.
Definition: type.hh:299
GeometryType(TopologyType t)
Constructor from static TopologyType class.
Definition: type.hh:277
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:252
BasicType
Each entity can be tagged by one of these basic types plus its space dimension.
Definition: type.hh:130
@ simplex
Simplicial element in any nonnegative dimension.
Definition: type.hh:131
@ extended
Other, more general topology, representable as topologyId.
Definition: type.hh:135
@ none
Even more general topology, cannot be specified by a topologyId. Two GeometryTypes with 'none' type a...
Definition: type.hh:136
constexpr GeometryType(Id id)
Reconstruct a Geometry type from a GeometryType::Id.
Definition: type.hh:232
constexpr bool isCube() const
Return true if entity is a cube of any dimension.
Definition: type.hh:334
constexpr GeometryType()
Default constructor, not initializing anything.
Definition: type.hh:242
constexpr bool isConical() const
Return true if entity was constructed with a conical product in the last step.
Definition: type.hh:339
constexpr bool isLine() const
Return true if entity is a line segment.
Definition: type.hh:294
constexpr bool isQuadrilateral() const
Return true if entity is a quadrilateral.
Definition: type.hh:304
constexpr bool isPrismatic() const
Return true if entity was constructed with a prismatic product in the last step.
Definition: type.hh:352
constexpr unsigned int id() const
Return the topology id of the type.
Definition: type.hh:375
constexpr bool isNone() const
Return true if entity is a singular of any dimension.
Definition: type.hh:365
constexpr bool isHexahedron() const
Return true if entity is a hexahedron.
Definition: type.hh:324
constexpr bool isSimplex() const
Return true if entity is a simplex of any dimension.
Definition: type.hh:329
A few common exception classes.
Traits for type conversions and type information.
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:130
typename Impl::voider< Types... >::type void_t
Is void for all valid input types. The workhorse for C++11 SFINAE-techniques.
Definition: typetraits.hh:38
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:156
constexpr GeometryType line
GeometryType representing a line.
Definition: type.hh:511
constexpr GeometryType cube(unsigned int dim)
Returns a GeometryType representing a hypercube of dimension dim.
Definition: type.hh:471
constexpr GeometryType prism
GeometryType representing a 3D prism.
Definition: type.hh:541
constexpr GeometryType triangle
GeometryType representing a triangle.
Definition: type.hh:517
constexpr GeometryType quadrilateral
GeometryType representing a quadrilateral (a square).
Definition: type.hh:523
constexpr GeometryType hexahedron
GeometryType representing a hexahedron.
Definition: type.hh:547
constexpr GeometryType pyramid
GeometryType representing a 3D pyramid.
Definition: type.hh:535
constexpr GeometryType tetrahedron
GeometryType representing a tetrahedron.
Definition: type.hh:529
constexpr GeometryType none(unsigned int dim)
Returns a GeometryType representing a singular of dimension dim.
Definition: type.hh:480
constexpr GeometryType simplex(unsigned int dim)
Returns a GeometryType representing a simplex of dimension dim.
Definition: type.hh:462
constexpr GeometryType vertex
GeometryType representing a vertex.
Definition: type.hh:505
Definitions of several macros that conditionally make C++ syntax available.
constexpr GeometryType prismaticExtension(const GeometryType >)
Return GeometryType of a prismatic construction with gt as base
Definition: type.hh:492
constexpr GeometryType conicalExtension(const GeometryType >)
Return GeometryType of a conical construction with gt as base
Definition: type.hh:486
STL namespace.
Definition of the DUNE_UNUSED macro for the case that config.h is not available.
|
Legal Statements / Impressum |
Hosted by TU Dresden & Uni Heidelberg |
generated with Hugo v0.111.3
(Mar 12, 23:46, 2026)