Dune Core Modules (2.9.0)
type.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
89 inline static unsigned int baseTopologyId ( unsigned int topologyId, int dim, int codim = 1 ) noexcept
99// Temporarily a header 'deprecated_topology.hh' is provided which will be removed after the 2.9 release.
138 };
568 template< template< GeometryType::Id > class Operation, int dim, GeometryType::Id geometryId = GeometryTypes::vertex >
578 return IfGeometryType< Operation, dim-1, GeometryTypes::prismaticExtension(geometry).toId() >::apply( lowerGeometry, std::forward< Args >( args )... );
580 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:125
constexpr GeometryType(unsigned int topologyId, unsigned int dim)
Constructor, using the topologyId (integer) and the dimension.
Definition: type.hh:262
constexpr bool operator<(const GeometryType &other) const
less-than operation for use with maps
Definition: type.hh:403
constexpr bool operator!=(const GeometryType &other) const
Check for inequality.
Definition: type.hh:398
constexpr bool isPyramid() const
Return true if entity is a pyramid.
Definition: type.hh:315
constexpr bool isTetrahedron() const
Return true if entity is a tetrahedron.
Definition: type.hh:310
constexpr bool isPrism() const
Return true if entity is a prism.
Definition: type.hh:320
constexpr bool isVertex() const
Return true if entity is a vertex.
Definition: type.hh:290
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:387
constexpr Id toId() const
Create an Id representation of this GeometryType.
Definition: type.hh:221
constexpr bool isConical(const int &step) const
Return true if entity was constructed with a conical product in the chosen step.
Definition: type.hh:348
constexpr unsigned int dim() const
Return dimension of the type.
Definition: type.hh:371
constexpr bool isPrismatic(const int &step) const
Return true if entity was constructed with a prismatic product in the chosen step.
Definition: type.hh:361
constexpr bool isTriangle() const
Return true if entity is a triangle.
Definition: type.hh:300
GeometryType(TopologyType t)
Constructor from static TopologyType class.
Definition: type.hh:278
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:253
BasicType
Each entity can be tagged by one of these basic types plus its space dimension.
Definition: type.hh:131
@ simplex
Simplicial element in any nonnegative dimension.
Definition: type.hh:132
@ extended
Other, more general topology, representable as topologyId.
Definition: type.hh:136
@ none
Even more general topology, cannot be specified by a topologyId. Two GeometryTypes with 'none' type a...
Definition: type.hh:137
constexpr GeometryType(Id id)
Reconstruct a Geometry type from a GeometryType::Id.
Definition: type.hh:233
constexpr bool isCube() const
Return true if entity is a cube of any dimension.
Definition: type.hh:335
constexpr GeometryType()
Default constructor, not initializing anything.
Definition: type.hh:243
constexpr bool isConical() const
Return true if entity was constructed with a conical product in the last step.
Definition: type.hh:340
constexpr bool isLine() const
Return true if entity is a line segment.
Definition: type.hh:295
constexpr bool isQuadrilateral() const
Return true if entity is a quadrilateral.
Definition: type.hh:305
constexpr bool isPrismatic() const
Return true if entity was constructed with a prismatic product in the last step.
Definition: type.hh:353
constexpr unsigned int id() const
Return the topology id of the type.
Definition: type.hh:376
constexpr bool isNone() const
Return true if entity is a singular of any dimension.
Definition: type.hh:366
constexpr bool isHexahedron() const
Return true if entity is a hexahedron.
Definition: type.hh:325
constexpr bool isSimplex() const
Return true if entity is a simplex of any dimension.
Definition: type.hh:330
A few common exception classes.
Traits for type conversions and type information.
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
typename Impl::voider< Types... >::type void_t
Is void for all valid input types. The workhorse for C++11 SFINAE-techniques.
Definition: typetraits.hh:40
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:158
constexpr GeometryType line
GeometryType representing a line.
Definition: type.hh:512
constexpr GeometryType cube(unsigned int dim)
Returns a GeometryType representing a hypercube of dimension dim.
Definition: type.hh:472
constexpr GeometryType prism
GeometryType representing a 3D prism.
Definition: type.hh:542
constexpr GeometryType triangle
GeometryType representing a triangle.
Definition: type.hh:518
constexpr GeometryType quadrilateral
GeometryType representing a quadrilateral (a square).
Definition: type.hh:524
constexpr GeometryType hexahedron
GeometryType representing a hexahedron.
Definition: type.hh:548
constexpr GeometryType pyramid
GeometryType representing a 3D pyramid.
Definition: type.hh:536
constexpr GeometryType tetrahedron
GeometryType representing a tetrahedron.
Definition: type.hh:530
constexpr GeometryType none(unsigned int dim)
Returns a GeometryType representing a singular of dimension dim.
Definition: type.hh:481
constexpr GeometryType simplex(unsigned int dim)
Returns a GeometryType representing a simplex of dimension dim.
Definition: type.hh:463
constexpr GeometryType vertex
GeometryType representing a vertex.
Definition: type.hh:506
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:493
constexpr GeometryType conicalExtension(const GeometryType >)
Return GeometryType of a conical construction with gt as base
Definition: type.hh:487
STL namespace.
Definition of the DUNE_UNUSED_PARAMETER macro.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 21, 23:30, 2024)