From 970756df1a9a74bfb817502d5e650b8140b5f69d Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Wed, 7 May 2003 08:14:34 +0000 Subject: [PATCH] make changes towards removing types from the traits class and also to comply with Nested_iterator --- .../include/CGAL/Apollonius_graph_2.h | 5 ++--- .../Apollonius_graph_euclidean_traits_2.h | 20 +++++++++---------- .../CGAL/Apollonius_graph_vertex_base_2.h | 8 ++++---- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_2.h b/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_2.h index e78db252738..d6069db62a4 100644 --- a/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_2.h +++ b/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_2.h @@ -153,7 +153,7 @@ protected: } protected: - // Less_than comparator for weights of weighted points; + // Less_than comparator for site weights; // used to sort sites by decreasing weight when a sequence of sites // is inserted class Site_less_than_comparator @@ -587,7 +587,7 @@ public: protected: template < class Stream > - Stream& draw_dual_weighted_points(Stream &str) const + Stream& draw_dual_sites(Stream &str) const { All_faces_iterator fit = all_faces_begin(); for (; fit != all_faces_end(); ++fit) { @@ -633,7 +633,6 @@ public: // MK: THE FOLLOWING ARE NOT IN THE SPEC //====================================== // Primal - // Weighted_point primal(const Face_handle& f) const; typename Gt::Object_2 primal(const Edge e) const; typename Gt::Object_2 primal(const Edge_circulator& ec) const { return primal(*ec); diff --git a/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_euclidean_traits_2.h b/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_euclidean_traits_2.h index 8e8625f04c7..9f11452cc9e 100644 --- a/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_euclidean_traits_2.h +++ b/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_euclidean_traits_2.h @@ -28,7 +28,6 @@ #define CGAL_APOLLONIUS_GRAPH_EUCLIDEAN_TRAITS_2_H #include -#include #include #include #include @@ -55,9 +54,10 @@ #include #include +#include + #include -#include #define KEEP_MOST_TYPES_IN_TRAITS 1 @@ -111,7 +111,7 @@ public: // CONSTRUCTIONS //-------------- - // vertex and weighted point + // vertex and dual site typedef CGAL::Construct_Apollonius_vertex_2 /* */ Construct_Apollonius_vertex_2; typedef CGAL::Construct_Apollonius_site_2 @@ -273,8 +273,6 @@ class Apollonius_graph_euclidean_traits_2< Filtered_kernel<_CK,_EK,_FK,_C2E,_C2F>, MTag> { private: - // add the wrappers; these should be removed once weighted points - // find their way into the kernel typedef Apollonius_graph_kernel_wrapper_2<_CK> CK; typedef Apollonius_graph_kernel_wrapper_2<_EK> EK; typedef Apollonius_graph_kernel_wrapper_2<_FK> FK; @@ -308,11 +306,11 @@ public: public: // CONSTRUCTIONS //-------------- - // vertex and weighted point + // vertex and dual site typedef CGAL::Construct_Apollonius_vertex_2 /* */ Construct_Apollonius_vertex_2; - typedef CGAL::Construct_Apollonius_weighted_point_2 - /* */ Construct_Apollonius_weighted_point_2; + typedef CGAL::Construct_Apollonius_site_2 + /* */ Construct_Apollonius_site_2; // bisectors and subsets typedef CGAL::Construct_Apollonius_bisector_2 @@ -401,9 +399,9 @@ public: return Construct_Apollonius_vertex_2(); } - inline Construct_Apollonius_weighted_point_2 - construct_Apollonius_weighted_point_2_object() const { - return Construct_Apollonius_weighted_point_2(); + inline Construct_Apollonius_site_2 + construct_Apollonius_site_2_object() const { + return Construct_Apollonius_site_2(); } inline Construct_Apollonius_bisector_2 diff --git a/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_vertex_base_2.h b/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_vertex_base_2.h index 46f0006ce69..10fd27e3ec6 100644 --- a/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_vertex_base_2.h +++ b/Packages/Apollonius_graph_2/include/CGAL/Apollonius_graph_vertex_base_2.h @@ -37,16 +37,16 @@ CGAL_BEGIN_NAMESPACE template struct Apollonius_graph_vertex_base_nested_iterator_traits { - typedef AGVB2_Iterator Base_iterator; + typedef AGVB2_Iterator Base_iterator; typedef typename - Base_iterator::value_type::Hidden_sites_iterator Nested_iterator; + Base_iterator::value_type::Hidden_sites_iterator Iterator; - Nested_iterator begin(Base_iterator it) const + Iterator begin(Base_iterator it) const { return it->hidden_sites_begin(); } - Nested_iterator end(Base_iterator it) const + Iterator end(Base_iterator it) const { return it->hidden_sites_end(); }