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
8
namespace
wmtk::utils::metaprogramming
{
9
10
namespace
detail {
11
template
<
typename
MeshType>
12
struct
cell_dimension
13
{
14
};
15
template
<>
16
struct
cell_dimension
<
PointMesh
>
17
{
18
constexpr
static
int64_t value = 0;
19
};
20
template
<>
21
struct
cell_dimension
<
EdgeMesh
>
22
{
23
constexpr
static
int64_t value = 1;
24
};
25
template
<>
26
struct
cell_dimension
<
TriMesh
>
27
{
28
constexpr
static
int64_t value = 2;
29
};
30
template
<>
31
struct
cell_dimension
<
TetMesh
>
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
wmtk::EdgeMesh
Definition:
EdgeMesh.hpp:16
wmtk::PointMesh
Definition:
PointMesh.hpp:12
wmtk::TetMesh
Definition:
TetMesh.hpp:14
wmtk::TriMesh
Definition:
TriMesh.hpp:19
wmtk::utils::metaprogramming
Definition:
as_mesh_variant.cpp:9
wmtk
Definition:
Accessor.hpp:6
wmtk::utils::metaprogramming::detail::cell_dimension
Definition:
cell_dimension.hpp:13
src
wmtk
utils
metaprogramming
cell_dimension.hpp
Generated by
1.9.1