|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Iterator over the vertices of a polygon. More...
#include <polygon.H>
Public Member Functions | |
| Vertex_Iterator (const Polygon &poly) | |
| Construct iterator from a polygon. | |
| Vertex & | get_current_vertex () |
| Get the current vertex. | |
Iterator over the vertices of a polygon.
Provides sequential access to all vertices in the polygon.
Construct iterator from a polygon.
| poly | The polygon to iterate over. |
| std::domain_error | If the polygon has no vertices. |
Definition at line 423 of file polygon.H.
References ah_domain_error_if, Aleph::Dlink::is_empty(), and Polygon::vertex_list.
|
inline |
Get the current vertex.
Definition at line 431 of file polygon.H.
References Vertex::dlink_to_vertex(), and Aleph::get_curr().
Referenced by TEST_F().