Wildmeshing Toolkit
MeshVariantTraits.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
DerivedReferenceWrapperVariantTraits.hpp
"
4
5
6
namespace
wmtk
{
7
class
Mesh;
8
class
PointMesh;
9
class
EdgeMesh;
10
class
TriMesh;
11
class
TetMesh;
12
}
// namespace wmtk
13
namespace
wmtk::utils::metaprogramming
{
14
using
MeshVariantTraits
=
15
DerivedReferenceWrapperVariantTraits<Mesh, PointMesh, EdgeMesh, TriMesh, TetMesh>
;
16
using
MeshVariantType
=
MeshVariantTraits::ReferenceVariant
;
17
using
ConstMeshVariantType
=
MeshVariantTraits::ConstReferenceVariant
;
18
19
template
<>
20
size_t
MeshVariantTraits::get_index
(
const
Mesh
& m);
21
22
}
// namespace wmtk::utils
DerivedReferenceWrapperVariantTraits.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::utils::metaprogramming
Definition:
as_mesh_variant.cpp:9
wmtk::utils::metaprogramming::ConstMeshVariantType
MeshVariantTraits::ConstReferenceVariant ConstMeshVariantType
Definition:
MeshVariantTraits.hpp:17
wmtk::utils::metaprogramming::MeshVariantType
MeshVariantTraits::ReferenceVariant MeshVariantType
Definition:
MeshVariantTraits.hpp:16
wmtk
Definition:
Accessor.hpp:6
wmtk::utils::metaprogramming::DerivedReferenceWrapperVariantTraits
Definition:
DerivedReferenceWrapperVariantTraits.hpp:10
wmtk::utils::metaprogramming::DerivedReferenceWrapperVariantTraits::ReferenceVariant
tuple::as_variant_type_t< ReferenceTuple > ReferenceVariant
Definition:
DerivedReferenceWrapperVariantTraits.hpp:22
wmtk::utils::metaprogramming::DerivedReferenceWrapperVariantTraits::get_index
static size_t get_index(const BaseType &t)
wmtk::utils::metaprogramming::DerivedReferenceWrapperVariantTraits::ConstReferenceVariant
tuple::as_variant_type_t< ConstReferenceTuple > ConstReferenceVariant
Definition:
DerivedReferenceWrapperVariantTraits.hpp:23
src
wmtk
utils
metaprogramming
MeshVariantTraits.hpp
Generated by
1.9.1