Wildmeshing Toolkit
as_mesh_variant.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <functional>
3
#include <variant>
4
#include "
MeshVariantTraits.hpp
"
5
6
namespace
wmtk::utils::metaprogramming
{
7
8
9
10
// converts a mesh to one of the derived classes we haev available
11
// if the messh type is uknown the returned type is still mesh
12
MeshVariantType
as_mesh_variant
(Mesh& m);
13
14
// const version of as_mesh_variant
15
ConstMeshVariantType
as_const_mesh_variant
(
const
Mesh& m);
16
17
18
}
// namespace wmtk::utils
MeshVariantTraits.hpp
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.hpp
Generated by
1.9.1