Dune Core Modules (2.7.1)
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
common.hh
Go to the documentation of this file.
55 };
81 };
126 class DUNE_DEPRECATED_MSG("TypeName will be removed after Dune 2.7. Look at VTK::toString and VTK::Precision for substitution.") TypeName {
305 };
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:279
constexpr bool isPyramid() const
Return true if entity is a pyramid.
Definition: type.hh:614
constexpr bool isTetrahedron() const
Return true if entity is a tetrahedron.
Definition: type.hh:609
constexpr bool isPrism() const
Return true if entity is a prism.
Definition: type.hh:619
constexpr bool isVertex() const
Return true if entity is a vertex.
Definition: type.hh:589
constexpr unsigned int dim() const
Return dimension of the type.
Definition: type.hh:644
constexpr bool isTriangle() const
Return true if entity is a triangle.
Definition: type.hh:599
constexpr bool isLine() const
Return true if entity is a line segment.
Definition: type.hh:594
constexpr bool isQuadrilateral() const
Return true if entity is a quadrilateral.
Definition: type.hh:604
constexpr bool isNone() const
Return true if entity is a singular of any dimension.
Definition: type.hh:639
constexpr bool isHexahedron() const
Return true if entity is a hexahedron.
Definition: type.hh:624
std::size_t size() const
The number of components in the data field.
Definition: common.hh:412
Precision precision() const
The precision used for the output of the data field.
Definition: common.hh:418
FieldInfo(std::string name, Type type, std::size_t size, Precision prec=Precision::float32)
Create a FieldInfo instance with the given name, type and size.
Definition: common.hh:392
std::string name() const
The name of the data field.
Definition: common.hh:400
const std::string & operator()() const
return VTK name of the type
Definition: common.hh:159
Definition of the DUNE_DEPRECATED macro for the case that config.h is not available.
A few common exception classes.
Precision
which precision to use when writing out data to vtk files
Definition: common.hh:319
OutputType
How the bulk data should be stored in the file.
Definition: common.hh:42
@ appendedraw
Output is to the file is appended raw binary.
Definition: common.hh:48
@ appendedbase64
Output is to the file is appended base64 binary.
Definition: common.hh:50
int renumber(const Dune::GeometryType &t, int i)
renumber VTK <-> Dune
Definition: common.hh:234
@ unstructuredGrid
for .vtu files (UnstructuredGrid)
Definition: common.hh:304
std::string toString(Precision p)
map precision to VTK type name
Definition: common.hh:328
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:66
std::size_t typeSize(Precision p)
map precision to byte size
Definition: common.hh:348
GeometryType geometryType(const Dune::GeometryType &t)
mapping from GeometryType to VTKGeometryType
Definition: common.hh:199
std::string getEndiannessString()
determine endianness of this C++ implementation
Definition: common.hh:280
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:180
#define DUNE_DEPRECATED_MSG(text)
Mark some entity as deprecated.
Definition: deprecated.hh:169
determine a type to safely put another type into a stream
Definition: common.hh:94
T Type
type to convert T to before putting it into a stream with <<
Definition: common.hh:96
A unique label for each type of element that can occur in a grid.
Traits for type conversions and type information.
