Wildmeshing Toolkit
cell_dimension.hpp
Go to the documentation of this file.
1 #pragma once
2 namespace wmtk {
3 class PointMesh;
4 class EdgeMesh;
5 class TriMesh;
6 class TetMesh;
7 } // namespace wmtk
9 
10 namespace detail {
11 template <typename MeshType>
13 {
14 };
15 template <>
17 {
18  constexpr static int64_t value = 0;
19 };
20 template <>
22 {
23  constexpr static int64_t value = 1;
24 };
25 template <>
27 {
28  constexpr static int64_t value = 2;
29 };
30 template <>
32 {
33  constexpr static int64_t value = 3;
34 };
35 } // namespace detail
36 template <typename MeshType>
37 constexpr static int64_t cell_dimension_v = detail::cell_dimension<MeshType>::value;
38 
39 /*
40 constexpr static int64_t cell_dimension_v<PointMesh> = 0;
41 constexpr static int64_t cell_dimension_v<EdgeMesh> = 1;
42 constexpr static int64_t cell_dimension_v<TriMesh> = 2;
43 constexpr static int64_t cell_dimension_v<EdgeMesh> = 3;
44 */
45 
46 
47 } // namespace wmtk::utils::metaprogramming
Definition: Accessor.hpp:6