From c73424e9a0d24d4e33d689df965b11d424331dcd Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Mon, 1 Mar 2010 09:15:16 +0000 Subject: [PATCH] this file contains a functor checking if the number type used is exact --- .../Segment_Delaunay_graph_2/Check_exact.h | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Check_exact.h diff --git a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Check_exact.h b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Check_exact.h new file mode 100644 index 00000000000..7c5f984d9e6 --- /dev/null +++ b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Check_exact.h @@ -0,0 +1,40 @@ +#ifndef CGAL_SEGMENT_DELAUNAY_GRAPH_2_CHECK_EXACT +#define CGAL_SEGMENT_DELAUNAY_GRAPH_2_CHECK_EXACT 1 + +#include + +CGAL_BEGIN_NAMESPACE + +CGAL_SEGMENT_DELAUNAY_GRAPH_2_BEGIN_NAMESPACE + +#ifdef CGAL_PROFILE + +template +struct Check_exact { + bool operator()() const { return true; } +}; + +template<> +struct Check_exact { + bool operator()() const { return false; } +}; + +template<> +struct Check_exact { + bool operator()() const { return false; } +}; + +template +struct Check_exact< Interval_nt > { + bool operator()() const { return false; } +}; + +#endif + + +CGAL_SEGMENT_DELAUNAY_GRAPH_2_END_NAMESPACE + +CGAL_END_NAMESPACE + + +#endif // CGAL_SEGMENT_DELAUNAY_GRAPH_2_CHECK_EXACT