this file contains a functor checking if the number type used is exact

This commit is contained in:
Menelaos Karavelas 2010-03-01 09:15:16 +00:00
parent 1ea01fc2a3
commit c73424e9a0
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
#ifndef CGAL_SEGMENT_DELAUNAY_GRAPH_2_CHECK_EXACT
#define CGAL_SEGMENT_DELAUNAY_GRAPH_2_CHECK_EXACT 1
#include <CGAL/basic.h>
CGAL_BEGIN_NAMESPACE
CGAL_SEGMENT_DELAUNAY_GRAPH_2_BEGIN_NAMESPACE
#ifdef CGAL_PROFILE
template<typename T>
struct Check_exact {
bool operator()() const { return true; }
};
template<>
struct Check_exact<double> {
bool operator()() const { return false; }
};
template<>
struct Check_exact<float> {
bool operator()() const { return false; }
};
template<bool b>
struct Check_exact< Interval_nt<b> > {
bool operator()() const { return false; }
};
#endif
CGAL_SEGMENT_DELAUNAY_GRAPH_2_END_NAMESPACE
CGAL_END_NAMESPACE
#endif // CGAL_SEGMENT_DELAUNAY_GRAPH_2_CHECK_EXACT