Dune Core Modules (2.3.1)
type.hh
Go to the documentation of this file.
36 };
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:25
bool isPrism() const
Return true if entity is a prism.
Definition: type.hh:297
bool isNone() const
Return true if entity is a singular of any dimension.
Definition: type.hh:317
bool isLine() const
Return true if entity is a line segment.
Definition: type.hh:272
bool isCube() const
Return true if entity is a cube of any dimension.
Definition: type.hh:312
GeometryType(BasicType basicType, unsigned int dim)
Constructor, using the basic type and the dimension.
Definition: type.hh:63
void makeQuadrilateral()
Make a quadrilateral.
Definition: type.hh:165
bool isPyramid() const
Return true if entity is a pyramid.
Definition: type.hh:292
bool isTetrahedron() const
Return true if entity is a tetrahedron.
Definition: type.hh:287
void makeSimplex(unsigned int dim)
Make a simplex of given dimension.
Definition: type.hh:194
GeometryType(int dim)
Constructor for vertices and segments.
Definition: type.hh:136
bool isVertex() const
Return true if entity is a vertex.
Definition: type.hh:267
void makeFromVertices(unsigned int dim, unsigned int vertices)
Construct the correct geometry type given the dimension and the number of vertices.
Definition: type.hh:218
BasicType
Each entity can be tagged by one of these basic types plus its space dimension.
Definition: type.hh:29
@ simplex
Simplicial element in any nonnegative dimension.
Definition: type.hh:30
@ extended
Other, more general geometry, representable as topologyId.
Definition: type.hh:34
GeometryType()
Default constructor, not initializing anything.
Definition: type.hh:58
bool isHexahedron() const
Return true if entity is a hexahedron.
Definition: type.hh:302
void makeNone(unsigned int dim)
Make a singular of given dimension.
Definition: type.hh:208
unsigned int id() const
Return the topology id the type.
Definition: type.hh:327
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:336
void makeCube(unsigned int dim)
Make a hypercube of given dimension.
Definition: type.hh:201
GeometryType(TopologyType t)
Constructor from static TopologyType class.
Definition: type.hh:119
bool operator!=(const GeometryType &other) const
Check for inequality.
Definition: type.hh:347
bool isQuadrilateral() const
Return true if entity is a quadrilateral.
Definition: type.hh:282
bool isTriangle() const
Return true if entity is a triangle.
Definition: type.hh:277
GeometryType(unsigned int topologyId, unsigned int dim)
Constructor, using the topologyId (integer) and the dimension.
Definition: type.hh:104
bool operator<(const GeometryType &other) const
less-than operation for use with maps
Definition: type.hh:352
bool isSimplex() const
Return true if entity is a simplex of any dimension.
Definition: type.hh:307
GeometryType(unsigned int dim)
Constructor for vertices and segments.
Definition: type.hh:126
A few common exception classes.
std::ostream & operator<<(std::ostream &s, const array< T, N > &e)
Output operator for array.
Definition: array.hh:159
Definition of the DUNE_UNUSED macro for the case that config.h is not available.
#define DUNE_UNUSED_PARAMETER(parm)
A macro to mark intentional unused function parameters with.
Definition: unused.hh:18
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)