Wildmeshing Toolkit
as_mesh_variant.cpp
Go to the documentation of this file.
1
#include "
as_mesh_variant.hpp
"
2
#include <
wmtk/EdgeMesh.hpp
>
3
#include <
wmtk/PointMesh.hpp
>
4
#include <
wmtk/TetMesh.hpp
>
5
#include <
wmtk/TriMesh.hpp
>
6
#include "
as_variant.hpp
"
7
8
9
namespace
wmtk::utils::metaprogramming
{
10
11
12
MeshVariantType
as_mesh_variant
(
Mesh
& mesh)
13
{
14
return
as_variant<MeshVariantTraits>(mesh);
15
}
16
ConstMeshVariantType
as_const_mesh_variant
(
const
Mesh
& mesh)
17
{
18
return
as_const_variant<MeshVariantTraits>(mesh);
19
}
20
}
// namespace wmtk::utils::metaprogramming
EdgeMesh.hpp
PointMesh.hpp
TetMesh.hpp
TriMesh.hpp
as_mesh_variant.hpp
as_variant.hpp
wmtk::Mesh
Definition:
Mesh.hpp:107
wmtk::utils::metaprogramming
Definition:
as_mesh_variant.cpp:9
wmtk::utils::metaprogramming::ConstMeshVariantType
MeshVariantTraits::ConstReferenceVariant ConstMeshVariantType
Definition:
MeshVariantTraits.hpp:17
wmtk::utils::metaprogramming::as_const_mesh_variant
ConstMeshVariantType as_const_mesh_variant(const Mesh &mesh)
Definition:
as_mesh_variant.cpp:16
wmtk::utils::metaprogramming::as_mesh_variant
MeshVariantType as_mesh_variant(Mesh &mesh)
Definition:
as_mesh_variant.cpp:12
wmtk::utils::metaprogramming::MeshVariantType
MeshVariantTraits::ReferenceVariant MeshVariantType
Definition:
MeshVariantTraits.hpp:16
src
wmtk
utils
metaprogramming
as_mesh_variant.cpp
Generated by
1.9.1