Add Cartesian_const_iterator

This commit is contained in:
Andreas Fabri 2025-01-10 12:01:09 +00:00
parent b09b1285d2
commit c7d9dede0b
3 changed files with 25 additions and 1 deletions

View File

@ -50,7 +50,7 @@ using Construct_cartesian_const_iterator_d = unspecified_type;
/*! /*!
Functor with operator to construct the bounding box of an object of type `Point_d`, Functor with operator to construct the bounding box of an object of type `Point_d`,
result type is either `CGAL::Bbox_2`, `CGAL::Bbox_3` or `CGAL::Bbox` depending on `Dimension`. result type is either `CGAL::Bbox_2`, `CGAL::Bbox_3` or `CGAL::Bbox_d` depending on `Dimension`.
*/ */
using Construct_bbox_d = unspecified_type; using Construct_bbox_d = unspecified_type;

View File

@ -57,6 +57,12 @@ struct Epeck_d {
*/ */
typedef DimensionTag Dimension; typedef DimensionTag Dimension;
/*!
A bidirectional iterator over the %Cartesian coordinates of a point
*/
class Cartesian_const_iterator;
/*! /*!
represents a point in the Euclidean space represents a point in the Euclidean space
\cgalModels{DefaultConstructible,Assignable} \cgalModels{DefaultConstructible,Assignable}

View File

@ -46,6 +46,12 @@ struct Epick_d {
*/ */
typedef DimensionTag Dimension; typedef DimensionTag Dimension;
/*!
A bidirectional iterator over the %Cartesian coordinates of a point
*/
class Cartesian_const_iterator;
/*!
represents a point in the Euclidean space represents a point in the Euclidean space
\cgalModels{DefaultConstructible,Assignable} \cgalModels{DefaultConstructible,Assignable}
*/ */
@ -159,6 +165,17 @@ public:
Bbox_d<DimensionTag> operator()(Point_d p); Bbox_d<DimensionTag> operator()(Point_d p);
}; };
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);
};
Construct_circumcenter_d construct_circumcenter_d_object(); Construct_circumcenter_d construct_circumcenter_d_object();
Compute_power_product_d compute_power_product_d_object(); Compute_power_product_d compute_power_product_d_object();
Compute_squared_radius_d compute_squared_radius_d_object(); Compute_squared_radius_d compute_squared_radius_d_object();
@ -166,5 +183,6 @@ Compute_squared_radius_smallest_orthogonal_sphere_d compute_squared_radius_small
Construct_power_sphere_d construct_power_sphere_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(); Power_side_of_bounded_power_sphere_d power_side_of_bounded_power_sphere_d_object();
Construct_bbox_d construct_bbox_d_object(); Construct_bbox_d construct_bbox_d_object();
Construct_cartesian_const_iterator_d onstruct_cartesian_const_iterator_d_object();
}; /* end Epick_d */ }; /* end Epick_d */
} /* end namespace CGAL */ } /* end namespace CGAL */