Dune Core Modules (2.4.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:296
bool isNone() const
Return true if entity is a singular of any dimension.
Definition: type.hh:316
bool isLine() const
Return true if entity is a line segment.
Definition: type.hh:271
bool isCube() const
Return true if entity is a cube of any dimension.
Definition: type.hh:311
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:164
bool isPyramid() const
Return true if entity is a pyramid.
Definition: type.hh:291
bool isTetrahedron() const
Return true if entity is a tetrahedron.
Definition: type.hh:286
void makeSimplex(unsigned int dim)
Make a simplex of given dimension.
Definition: type.hh:193
GeometryType(int dim)
Constructor for vertices and segments.
Definition: type.hh:135
bool isVertex() const
Return true if entity is a vertex.
Definition: type.hh:266
void makeFromVertices(unsigned int dim, unsigned int vertices)
Construct the correct geometry type given the dimension and the number of vertices.
Definition: type.hh:217
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:301
void makeNone(unsigned int dim)
Make a singular of given dimension.
Definition: type.hh:207
unsigned int id() const
Return the topology id the type.
Definition: type.hh:326
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:335
void makeCube(unsigned int dim)
Make a hypercube of given dimension.
Definition: type.hh:200
GeometryType(TopologyType t)
Constructor from static TopologyType class.
Definition: type.hh:118
bool operator!=(const GeometryType &other) const
Check for inequality.
Definition: type.hh:346
bool isQuadrilateral() const
Return true if entity is a quadrilateral.
Definition: type.hh:281
bool isTriangle() const
Return true if entity is a triangle.
Definition: type.hh:276
GeometryType(unsigned int topologyId, unsigned int dim)
Constructor, using the topologyId (integer) and the dimension.
Definition: type.hh:103
bool operator<(const GeometryType &other) const
less-than operation for use with maps
Definition: type.hh:351
bool isSimplex() const
Return true if entity is a simplex of any dimension.
Definition: type.hh:306
GeometryType(unsigned int dim)
Constructor for vertices and segments.
Definition: type.hh:125
A few common exception classes.
std::ostream & operator<<(std::ostream &s, const array< T, N > &e)
Output operator for array.
Definition: array.hh:26
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)