Dune Core Modules (2.9.1)
type.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
90 inline static unsigned int baseTopologyId ( unsigned int topologyId, int dim, int codim = 1 ) noexcept
100// Temporarily a header 'deprecated_topology.hh' is provided which will be removed after the 2.9 release.
139 };
569 template< template< GeometryType::Id > class Operation, int dim, GeometryType::Id geometryId = GeometryTypes::vertex >
579 return IfGeometryType< Operation, dim-1, GeometryTypes::prismaticExtension(geometry).toId() >::apply( lowerGeometry, std::forward< Args >( args )... );
581 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:126
constexpr GeometryType(unsigned int topologyId, unsigned int dim)
Constructor, using the topologyId (integer) and the dimension.
Definition: type.hh:263
constexpr bool operator<(const GeometryType &other) const
less-than operation for use with maps
Definition: type.hh:404
constexpr bool operator!=(const GeometryType &other) const
Check for inequality.
Definition: type.hh:399
constexpr bool isPyramid() const
Return true if entity is a pyramid.
Definition: type.hh:316
constexpr bool isTetrahedron() const
Return true if entity is a tetrahedron.
Definition: type.hh:311
constexpr bool isPrism() const
Return true if entity is a prism.
Definition: type.hh:321
constexpr bool isVertex() const
Return true if entity is a vertex.
Definition: type.hh:291
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:388
constexpr Id toId() const
Create an Id representation of this GeometryType.
Definition: type.hh:222
constexpr bool isConical(const int &step) const
Return true if entity was constructed with a conical product in the chosen step.
Definition: type.hh:349
constexpr unsigned int dim() const
Return dimension of the type.
Definition: type.hh:372
constexpr bool isPrismatic(const int &step) const
Return true if entity was constructed with a prismatic product in the chosen step.
Definition: type.hh:362
constexpr bool isTriangle() const
Return true if entity is a triangle.
Definition: type.hh:301
GeometryType(TopologyType t)
Constructor from static TopologyType class.
Definition: type.hh:279
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:254
BasicType
Each entity can be tagged by one of these basic types plus its space dimension.
Definition: type.hh:132
@ simplex
Simplicial element in any nonnegative dimension.
Definition: type.hh:133
@ extended
Other, more general topology, representable as topologyId.
Definition: type.hh:137
@ none
Even more general topology, cannot be specified by a topologyId. Two GeometryTypes with 'none' type a...
Definition: type.hh:138
constexpr GeometryType(Id id)
Reconstruct a Geometry type from a GeometryType::Id.
Definition: type.hh:234
constexpr bool isCube() const
Return true if entity is a cube of any dimension.
Definition: type.hh:336
constexpr GeometryType()
Default constructor, not initializing anything.
Definition: type.hh:244
constexpr bool isConical() const
Return true if entity was constructed with a conical product in the last step.
Definition: type.hh:341
constexpr bool isLine() const
Return true if entity is a line segment.
Definition: type.hh:296
constexpr bool isQuadrilateral() const
Return true if entity is a quadrilateral.
Definition: type.hh:306
constexpr bool isPrismatic() const
Return true if entity was constructed with a prismatic product in the last step.
Definition: type.hh:354
constexpr unsigned int id() const
Return the topology id of the type.
Definition: type.hh:377
constexpr bool isNone() const
Return true if entity is a singular of any dimension.
Definition: type.hh:367
constexpr bool isHexahedron() const
Return true if entity is a hexahedron.
Definition: type.hh:326
constexpr bool isSimplex() const
Return true if entity is a simplex of any dimension.
Definition: type.hh:331
A few common exception classes.
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:513
constexpr GeometryType cube(unsigned int dim)
Returns a GeometryType representing a hypercube of dimension dim.
Definition: type.hh:473
constexpr GeometryType prism
GeometryType representing a 3D prism.
Definition: type.hh:543
constexpr GeometryType triangle
GeometryType representing a triangle.
Definition: type.hh:519
constexpr GeometryType quadrilateral
GeometryType representing a quadrilateral (a square).
Definition: type.hh:525
constexpr GeometryType hexahedron
GeometryType representing a hexahedron.
Definition: type.hh:549
constexpr GeometryType pyramid
GeometryType representing a 3D pyramid.
Definition: type.hh:537
constexpr GeometryType tetrahedron
GeometryType representing a tetrahedron.
Definition: type.hh:531
constexpr GeometryType none(unsigned int dim)
Returns a GeometryType representing a singular of dimension dim.
Definition: type.hh:482
constexpr GeometryType simplex(unsigned int dim)
Returns a GeometryType representing a simplex of dimension dim.
Definition: type.hh:464
constexpr GeometryType vertex
GeometryType representing a vertex.
Definition: type.hh:507
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:494
constexpr GeometryType conicalExtension(const GeometryType >)
Return GeometryType of a conical construction with gt as base
Definition: type.hh:488
STL namespace.
Traits for type conversions and type information.
Definition of the DUNE_UNUSED_PARAMETER macro.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)