Skip to content

Commit

Permalink
Remove dependency with a forward declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Jan 10, 2025
1 parent fcaa46b commit 44215ad
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
4 changes: 3 additions & 1 deletion Filtered_kernel/include/CGAL/Lazy.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <CGAL/Origin.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/Bbox_d.h>
#include <CGAL/Default.h>
#include <CGAL/tss.h>
#include <CGAL/type_traits/is_iterator.h>
Expand All @@ -52,6 +51,9 @@

namespace CGAL {

template <typename D>
class Bbox_d;

template <class E,
class A,
class E2A,
Expand Down
4 changes: 2 additions & 2 deletions Kernel_23/test/Kernel_23/test_bbox.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/Bbox.h>
#include <CGAL/Bbox_d.h>

#include <vector>

Expand Down Expand Up @@ -82,7 +82,7 @@ int main()

{
//Dimension d
typedef CGAL::Bbox<CGAL::Dimension_tag<3>,double> BBox3;
typedef CGAL::Bbox_d<CGAL::Dimension_tag<3>> BBox3;
BBox3 bb3(3), bb3a(3,1.0);
assert(bb3.dimension() == 3);
assert(bb3 != bb3a);
Expand Down
19 changes: 16 additions & 3 deletions Kernel_d/doc/Kernel_d/CGAL/Epeck_d.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ typedef DimensionTag Dimension;
/*!
A bidirectional iterator over the %Cartesian coordinates of a point
*/
class Cartesian_const_iterator;
class Cartesian_const_iterator{};


/*!
Expand Down Expand Up @@ -177,12 +177,25 @@ class Construct_bbox_d {
Bbox_d<DimensionTag> operator()(Point_d p);
};

Construct_circumcenter_d construct_circumcenter_d_object();
class Construct_cartesian_const_iterator_d {
public:
/*! returns the begin iterator to iterate over the %Cartesian coordinates of point `p`.
*/
Cartesian_const_iterator_d operator()(Point_d p);

/*! returns the past-the-end iterator to iterate over the %Cartesian coordinates of point `p`.
*/
Cartesian_const_iterator_d operator()(Point_d p, int);
};


Compute_power_product_d compute_power_product_d_object();
Compute_squared_radius_d compute_squared_radius_d_object();
Compute_squared_radius_smallest_orthogonal_sphere_d compute_squared_radius_smallest_orthogonal_sphere_d_object();
Construct_bbox_d construct_bbox_d_object();
Construct_cartesian_const_iterator_d construct_cartesian_const_iterator_d_object();
Construct_circumcenter_d construct_circumcenter_d_object();
Construct_power_sphere_d construct_power_sphere_d_object();
Power_side_of_bounded_power_sphere_d power_side_of_bounded_power_sphere_d_object();
Construct_bbox_d construct_bbox_d_object();
}; /* end Epeck_d */
} /* end namespace CGAL */
9 changes: 5 additions & 4 deletions Kernel_d/doc/Kernel_d/CGAL/Epick_d.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef DimensionTag Dimension;
/*!
A bidirectional iterator over the %Cartesian coordinates of a point
*/
class Cartesian_const_iterator;
class Cartesian_const_iterator{};

/*!
represents a point in the Euclidean space
Expand Down Expand Up @@ -176,13 +176,14 @@ class Construct_cartesian_const_iterator_d {
Cartesian_const_iterator_d operator()(Point_d p, int);
};

Construct_circumcenter_d construct_circumcenter_d_object();
Compute_power_product_d compute_power_product_d_object();
Compute_squared_radius_d compute_squared_radius_d_object();
Compute_squared_radius_smallest_orthogonal_sphere_d compute_squared_radius_smallest_orthogonal_sphere_d_object();
Construct_bbox_d construct_bbox_d_object();
Construct_cartesian_const_iterator_d construct_cartesian_const_iterator_d_object();
Construct_circumcenter_d construct_circumcenter_d_object();
Construct_power_sphere_d construct_power_sphere_d_object();
Power_side_of_bounded_power_sphere_d power_side_of_bounded_power_sphere_d_object();
Construct_bbox_d construct_bbox_d_object();
Construct_cartesian_const_iterator_d onstruct_cartesian_const_iterator_d_object();

}; /* end Epick_d */
} /* end namespace CGAL */

0 comments on commit 44215ad

Please sign in to comment.