dune-geometry  2.7.0
Classes | Namespaces | Functions | Variables
type.hh File Reference

A unique label for each type of element that can occur in a grid. More...

#include <cassert>
#include <string>
#include <dune/common/deprecated.hh>
#include <dune/common/exceptions.hh>
#include <dune/common/keywords.hh>
#include <dune/common/typetraits.hh>
#include <dune/common/unused.hh>
#include "utility/typefromvertexcount.hh"

Go to the source code of this file.

Classes

class  Dune::GeometryType
 Unique label for each type of entities that can occur in DUNE grids. More...
 

Namespaces

 Dune
 
 Dune::GeometryTypes
 Predefined GeometryTypes for common geometries.
 

Functions

GeometryType Dune::geometryTypeFromVertexCount (unsigned int dim, unsigned int vertices)
 Utitlity function to construct the correct geometry type given the dimension and the number of vertices. More...
 
std::ostream & Dune::operator<< (std::ostream &s, const GeometryType &a)
 Prints the type to an output stream. More...
 
DUNE_NO_DEPRECATED_BEGIN std::ostream & Dune::operator<< (std::ostream &s, GeometryType::BasicType type)
 Prints a GeometryType::BasicType to an output stream. More...
 
constexpr GeometryType Dune::GeometryTypes::simplex (unsigned int dim)
 Returns a GeometryType representing a simplex of dimension dim. More...
 
constexpr GeometryType Dune::GeometryTypes::cube (unsigned int dim)
 Returns a GeometryType representing a hypercube of dimension dim. More...
 
constexpr GeometryType Dune::GeometryTypes::none (unsigned int dim)
 Returns a GeometryType representing a singular of dimension dim. More...
 

Variables

constexpr GeometryType Dune::GeometryTypes::vertex = GeometryType(0,0,false)
 GeometryType representing a vertex. More...
 
constexpr GeometryType Dune::GeometryTypes::line = GeometryType(0,1,false)
 GeometryType representing a line. More...
 
constexpr GeometryType Dune::GeometryTypes::triangle = simplex(2)
 GeometryType representing a triangle. More...
 
constexpr GeometryType Dune::GeometryTypes::quadrilateral = cube(2)
 GeometryType representing a quadrilateral (a square). More...
 
constexpr GeometryType Dune::GeometryTypes::tetrahedron = simplex(3)
 GeometryType representing a tetrahedron. More...
 
constexpr GeometryType Dune::GeometryTypes::pyramid = GeometryType(0b0011,3,false)
 GeometryType representing a 3D pyramid. More...
 
constexpr GeometryType Dune::GeometryTypes::prism = GeometryType(0b0101,3,false)
 GeometryType representing a 3D prism. More...
 
constexpr GeometryType Dune::GeometryTypes::hexahedron = cube(3)
 GeometryType representing a hexahedron. More...
 

Detailed Description

A unique label for each type of element that can occur in a grid.