dune-geometry  2.9.0
dimension.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 // SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
4 // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5 #ifndef DUNE_GEOMETRY_DIMENSION_HH
6 #define DUNE_GEOMETRY_DIMENSION_HH
7 
8 #include <type_traits>
9 
10 namespace Dune {
11 
13  template<int dim>
14  struct Dim
15  : public std::integral_constant<int,dim>
16  {
17  typedef Dim type;
18  };
19 
21  template<int codim>
22  struct Codim
23  : public std::integral_constant<int,codim>
24  {
25  typedef Codim type;
26  };
27 
28 }
29 
30 #endif // DUNE_GEOMETRY_DIMENSION_HH
Definition: affinegeometry.hh:21
Static tag representing a dimension.
Definition: dimension.hh:16
Dim type
Definition: dimension.hh:17
Static tag representing a codimension.
Definition: dimension.hh:24
Codim type
Definition: dimension.hh:25