mirror of https://github.com/CGAL/cgal
clean up the circulator and iterator types
This commit is contained in:
parent
ed83f2acfb
commit
3c8d97c4fa
|
|
@ -274,11 +274,11 @@ class Polygon_2 {
|
||||||
|
|
||||||
/// Returns a constant iterator that allows to traverse the
|
/// Returns a constant iterator that allows to traverse the
|
||||||
/// vertices of the polygon.
|
/// vertices of the polygon.
|
||||||
Vertex_const_iterator vertices_begin() const
|
Vertex_iterator vertices_begin() const
|
||||||
{ return const_cast<Polygon_2&>(*this).d_container.begin(); }
|
{ return const_cast<Polygon_2&>(*this).d_container.begin(); }
|
||||||
|
|
||||||
/// Returns the corresponding past-the-end iterator.
|
/// Returns the corresponding past-the-end iterator.
|
||||||
Vertex_const_iterator vertices_end() const
|
Vertex_iterator vertices_end() const
|
||||||
{ return const_cast<Polygon_2&>(*this).d_container.end(); }
|
{ return const_cast<Polygon_2&>(*this).d_container.end(); }
|
||||||
|
|
||||||
/// returns the range of vertices.
|
/// returns the range of vertices.
|
||||||
|
|
@ -290,12 +290,12 @@ class Polygon_2 {
|
||||||
// Vertex_const_circulator vertices_circulator() const
|
// Vertex_const_circulator vertices_circulator() const
|
||||||
// { return Vertex_const_circulator(&d_container, d_container.begin()); }
|
// { return Vertex_const_circulator(&d_container, d_container.begin()); }
|
||||||
|
|
||||||
/// Returns a mutable circulator that allows to traverse the
|
/// Returns a constant circulator that allows to traverse the
|
||||||
/// vertices of the polygon.
|
/// vertices of the polygon.
|
||||||
Vertex_const_circulator vertices_circulator() const
|
Vertex_circulator vertices_circulator() const
|
||||||
{
|
{
|
||||||
Polygon_2& self = const_cast<Polygon_2&>(*this);
|
Polygon_2& self = const_cast<Polygon_2&>(*this);
|
||||||
return Vertex_const_circulator(&self.d_container,
|
return Vertex_circulator(&self.d_container,
|
||||||
self.d_container.begin());
|
self.d_container.begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -404,7 +404,7 @@ class Polygon_2 {
|
||||||
self.d_container.end(), traits);
|
self.d_container.end(), traits);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns topmost vertex of the polygon with the largest
|
/// Returns the topmost vertex of the polygon with the largest
|
||||||
/// `y`-coordinate.
|
/// `y`-coordinate.
|
||||||
Vertex_const_iterator top_vertex() const
|
Vertex_const_iterator top_vertex() const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue