Get rid of <CGAL/NT_extensions_root_of/*> and other small cleanups.

This commit is contained in:
Sylvain Pion 2006-04-06 09:11:38 +00:00
parent 381dc88573
commit b909b3e4e4
36 changed files with 19 additions and 191 deletions

View File

@ -11,7 +11,7 @@
#include <iomanip>
#include <fstream>
#include "Input_data.h"
#include "boost/variant.hpp"
#include <boost/variant.hpp>

View File

@ -18,10 +18,6 @@
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>

View File

@ -11,7 +11,8 @@
#include <iomanip>
#include <fstream>
#include "Input_data.h"
#include "boost/variant.hpp"
#include <boost/variant.hpp>
class Bench
{
int numof_f_fails;

View File

@ -9,10 +9,6 @@
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>

View File

@ -1,5 +1,3 @@
#include <CGAL/basic.h>
#include <CGAL/point_generators_2.h>
@ -8,10 +6,6 @@
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>

View File

@ -11,7 +11,7 @@
#include <iomanip>
#include <fstream>
#include "Input_data.h"
#include "boost/variant.hpp"
#include <boost/variant.hpp>

View File

@ -17,10 +17,6 @@
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>

View File

@ -8,10 +8,6 @@
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>

View File

@ -16,11 +16,6 @@
#include <CGAL/Gmpq.h>
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
using namespace std;
class Dxf_converter {
//typedef std::pair<double, double> Point_2;

View File

@ -11,7 +11,8 @@
#include <iomanip>
#include <fstream>
#include "Input_data.h"
#include "boost/variant.hpp"
#include <boost/variant.hpp>
class Bench
{
int numof_f_fails;

View File

@ -9,10 +9,6 @@
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>

View File

@ -37,10 +37,6 @@ int main() {
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/IO/Qt_widget.h>
#include <CGAL/IO/Qt_widget_standard_toolbar.h>
#include <CGAL/IO/Qt_help_window.h>

View File

@ -29,30 +29,6 @@ int main() {
#else
#include <utility>
namespace CGAL {
class MP_Float;
template < typename T > class Root_of_2;
template < typename T > class Lazy_exact_nt;
template < typename T >
std::pair<double,double> to_interval(const Root_of_2<T>&);
#if 0
template < typename T >
void operator-(Lazy_exact_nt<Root_of_2<T> > a, Lazy_exact_nt< Root_of_2<T> > b) { f(a); }
void operator-(Lazy_exact_nt<Root_of_2<MP_Float> > a, Lazy_exact_nt< Root_of_2<MP_Float> > b);
template < typename T1, typename T2 >
struct Binary_operator_result;
template < typename T1, typename T2 >
struct Binary_operator_result <Root_of_2<T1>, Root_of_2<T2> >;
#endif
}
#include <fstream>
#include <CGAL/Cartesian.h>
@ -62,10 +38,6 @@ struct Binary_operator_result <Root_of_2<T1>, Root_of_2<T2> >;
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/IO/Qt_widget.h>
#include <CGAL/IO/Qt_widget_standard_toolbar.h>
#include <CGAL/IO/Qt_help_window.h>

View File

@ -37,10 +37,6 @@ int main() {
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/IO/Qt_widget.h>
#include <CGAL/IO/Qt_widget_standard_toolbar.h>
#include <CGAL/IO/Qt_help_window.h>

View File

@ -37,10 +37,6 @@ int main() {
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/IO/Qt_widget.h>
#include <CGAL/IO/Qt_widget_standard_toolbar.h>
#include <CGAL/IO/Qt_help_window.h>

View File

@ -37,10 +37,6 @@ int main() {
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/IO/Qt_widget.h>
#include <CGAL/IO/Qt_widget_standard_toolbar.h>
#include <CGAL/IO/Qt_help_window.h>

View File

@ -14,6 +14,9 @@ include $(CGAL_MAKEFILE)
#---------------------------------------------------------------------#
CXXFLAGS = \
-I../../../Number_types/include \
-I../../../Interval_arithmetic/include \
-I../../include \
$(CGAL_CXXFLAGS) \
$(LONG_NAME_PROBLEM_CXXFLAGS) \
-fmessage-length=0

View File

@ -11,10 +11,6 @@
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>
#include <CGAL/Lazy_curved_kernel.h>
@ -23,7 +19,7 @@
#include <CGAL/Arr_naive_point_location.h>
#include <CGAL/Filtered_hexagon_curved_kernel.h>
#include <CGAL/Filtered_bbox_curved_kernel.h>
#include "boost/variant.hpp"
#include <boost/variant.hpp>
#include <CGAL/Timer.h>

View File

@ -5,14 +5,10 @@
#include <CGAL/point_generators_2.h>
#include <CGAL/MP_Float.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>

View File

@ -1,4 +1,3 @@
//#include <fstream>
#include <CGAL/basic.h>
@ -6,20 +5,16 @@
#include <CGAL/point_generators_2.h>
#include <CGAL/MP_Float.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>
#include <CGAL/Arr_circular_line_arc_traits.h>
#include <CGAL/Arrangement_2.h>
#include <CGAL/Arr_naive_point_location.h>
#include "boost/variant.hpp"
#include <boost/variant.hpp>
#include <CGAL/Random.h>

View File

@ -5,24 +5,18 @@
#include <CGAL/point_generators_2.h>
#include <CGAL/MP_Float.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>
#include <CGAL/Arr_line_arc_traits.h>
#include <CGAL/Arrangement_2.h>
#include <CGAL/Arr_naive_point_location.h>
#include <CGAL/Random.h>

View File

@ -1,17 +1,8 @@
#include <CGAL/basic.h>
#include <utility>
namespace CGAL {
class MP_Float;
template < typename T > class Root_of_2;
template < typename T > class Lazy_exact_nt;
template < typename T >
std::pair<double,double> to_interval(const Root_of_2<T>&);
}
//#include <fstream>
#include <CGAL/basic.h>
#include <CGAL/Cartesian.h>
#include <CGAL/point_generators_2.h>
@ -20,18 +11,10 @@ std::pair<double,double> to_interval(const Root_of_2<T>&);
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/Lazy_curved_kernel.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/NT_extensions_Root_of/double.h>
//#include <CGAL/IO/Qt_widget.h>
//#include <CGAL/IO/Qt_widget_standard_toolbar.h>
//#include <CGAL/IO/Qt_help_window.h>
//#include <CGAL/IO/Qt_widget_layer.h>
//#include <CGAL/IO/Qt_widget_circular_arc_2.h>
//#include <CGAL/IO/Qt_widget_circular_arc_endpoint_2.h>
@ -45,12 +28,9 @@ std::pair<double,double> to_interval(const Root_of_2<T>&);
#include <CGAL/Arrangement_2.h>
#include <CGAL/Arr_naive_point_location.h>
#include <CGAL/Random.h>
typedef CGAL::Quotient<CGAL::MP_Float> NT1;
typedef CGAL::Cartesian<NT1> Linear_k1;
typedef CGAL::Algebraic_kernel_for_circles_2_2<NT1> Algebraic_k1;

View File

@ -1,16 +1,8 @@
#include <CGAL/basic.h>
#include <utility>
namespace CGAL {
class MP_Float;
template < typename T > class Root_of_2;
template < typename T > class Lazy_exact_nt;
template < typename T >
std::pair<double,double> to_interval(const Root_of_2<T>&);
}
//#include <fstream>
#include <CGAL/basic.h>
#include <CGAL/Cartesian.h>
#include <CGAL/point_generators_2.h>
@ -18,20 +10,15 @@ std::pair<double,double> to_interval(const Root_of_2<T>&);
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>
#include <CGAL/Lazy_curved_kernel.h>
#include <CGAL/Arr_circular_line_arc_traits.h>
#include <CGAL/Arrangement_2.h>
#include <CGAL/Arr_naive_point_location.h>
#include "boost/variant.hpp"
#include <boost/variant.hpp>
#include <CGAL/Timer.h>
#include <CGAL/Random.h>

View File

@ -1,15 +1,7 @@
#include <CGAL/basic.h>
#include <utility>
namespace CGAL {
class MP_Float;
template < typename T > class Root_of_2;
template < typename T > class Lazy_exact_nt;
template < typename T >
std::pair<double,double> to_interval(const Root_of_2<T>&);
}
//#include <fstream>
#include <CGAL/basic.h>
#include <CGAL/Cartesian.h>
#include <CGAL/point_generators_2.h>
@ -17,10 +9,6 @@ std::pair<double,double> to_interval(const Root_of_2<T>&);
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/Lazy_curved_kernel.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/NT_extensions_Root_of/double.h>
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel.h>
@ -30,8 +18,6 @@ std::pair<double,double> to_interval(const Root_of_2<T>&);
#include <CGAL/Arrangement_2.h>
#include <CGAL/Arr_naive_point_location.h>
#include <CGAL/Random.h>
@ -51,9 +37,6 @@ typedef CGAL::Lazy_curved_kernel<CK1_,CK2_> Circular_k;
//typedef Circular_k::Circular_arc_2 Arc;
typedef Circular_k::Line_arc_2 Arc;
typedef std::vector<Arc> ArcContainer;

View File

@ -8,8 +8,6 @@
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#include <CGAL/Circular_kernel.h>
#include <CGAL/Arr_circular_arc_traits.h>

View File

@ -5,11 +5,10 @@
#include <CGAL/point_generators_2.h>
#include <CGAL/MP_Float.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Algebraic_kernel_2_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/Circular_kernel.h>
#include <CGAL/Arr_circular_line_arc_traits.h>

View File

@ -32,14 +32,11 @@
#ifdef CGAL_USE_GMP
# include <CGAL/Gmpq.h>
# include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#else
# include <CGAL/MP_Float.h>
# include <CGAL/Quotient.h>
# include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
#endif
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/Lazy_curved_kernel.h>
CGAL_BEGIN_NAMESPACE

View File

@ -29,7 +29,6 @@
#include <iterator>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polygon_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Interval_nt.h>
#include <CGAL/Curved_kernel_converter.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/Filtered_hexagon_curved_kernel/hexagon_primitives.h>

View File

@ -30,7 +30,6 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polygon_2.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Interval_nt.h>
#include <CGAL/Filtered_hexagon_curved_kernel/hexagon_primitives.h>
CGAL_BEGIN_NAMESPACE

View File

@ -32,7 +32,6 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/number_utils.h>
#include <CGAL/Line_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Interval_nt.h>
#include <CGAL/Object.h>
#include <CGAL/Lazy.h>
#include <CGAL/Curved_kernel/internal_functions_on_circular_arc_2.h>

View File

@ -4,8 +4,6 @@
#include <CGAL/MP_Float.h>
#include <CGAL/Quotient.h>
//#include <CGAL/Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/_test_circles_predicates.h>
#include <CGAL/_test_circles_constructions.h>
#include <CGAL/_test_circles_extention.h>

View File

@ -7,9 +7,6 @@
#include <CGAL/MP_Float.h>
#include <CGAL/Quotient.h>
//#include <CGAL/Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/Lazy_curved_kernel.h>
#include <CGAL/intersections.h>
#include <CGAL/Filtered_bbox_curved_kernel.h>

View File

@ -8,8 +8,6 @@
#include <CGAL/MP_Float.h>
#include <CGAL/Quotient.h>
//#include <CGAL/Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/_test_circles_predicates.h>
#include <CGAL/_test_circles_constructions.h>
@ -51,5 +49,3 @@ int main()
return 0;
}

View File

@ -13,9 +13,6 @@
#include <CGAL/Curved_kernel/Circular_arc_2.h>
#include <CGAL/Curved_kernel/Line_arc_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/Lazy_curved_kernel.h>
#include <CGAL/Random.h>
@ -1083,7 +1080,4 @@ int main()
_test_compare_y_to_right(ck);
_test_compare_y_at_x(ck);
_test_has_on(ck);
}

View File

@ -7,9 +7,6 @@
#include <CGAL/MP_Float.h>
#include <CGAL/Quotient.h>
//#include <CGAL/Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Lazy_exact_nt.h>
#include <CGAL/Lazy_curved_kernel.h>
#include <CGAL/intersections.h>
#include <iostream>

View File

@ -13,9 +13,6 @@
#include <CGAL/Curved_kernel/Circular_arc_2.h>
#include <CGAL/Curved_kernel/Line_arc_2.h>
#include <CGAL/NT_extensions_Root_of/CGAL_Quotient.h>
//#include <CGAL/NT_extensions_Root_of/CGAL_Gmpq.h>
#include <CGAL/Random.h>
template <class CK>
@ -1075,7 +1072,4 @@ int main()
_test_compare_y_to_right(ck1);
_test_compare_y_at_x(ck1);
_test_has_on(ck1);
}