From 9bb0de291165c6accf0b2917811b306747863e12 Mon Sep 17 00:00:00 2001 From: Janis Born Date: Fri, 30 Nov 2018 20:12:27 +0100 Subject: [PATCH] add HandleToPropHandle metaprogram helper --- src/OpenMesh/Core/Utils/HandleToPropHandle.hh | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/OpenMesh/Core/Utils/HandleToPropHandle.hh diff --git a/src/OpenMesh/Core/Utils/HandleToPropHandle.hh b/src/OpenMesh/Core/Utils/HandleToPropHandle.hh new file mode 100644 index 00000000..4332b537 --- /dev/null +++ b/src/OpenMesh/Core/Utils/HandleToPropHandle.hh @@ -0,0 +1,40 @@ +#ifndef HANDLETOPROPHANDLE_HH_ +#define HANDLETOPROPHANDLE_HH_ + +#include +#include + +namespace OpenMesh { + + template + struct HandleToPropHandle { + }; + + template + struct HandleToPropHandle { + using type = OpenMesh::VPropHandleT; + }; + + template + struct HandleToPropHandle { + using type = OpenMesh::HPropHandleT; + }; + + template + struct HandleToPropHandle { + using type = OpenMesh::EPropHandleT; + }; + + template + struct HandleToPropHandle { + using type = OpenMesh::FPropHandleT; + }; + + template + struct HandleToPropHandle { + using type = OpenMesh::MPropHandleT; + }; + +} // namespace OpenMesh + +#endif // HANDLETOPROPHANDLE_HH_ \ No newline at end of file