Vertex-On-Cell (-Facet, ...) Iterator Concept |
A Vertex-On-Cell Iterator refines the concept of Grid Incidence Iterator : It allows to access all vertices incident to a given cell. Thus, it can also be seen as a Grid Sequence Iterator over the Vertex Grid Range of that cell.
Similar iterators can be defined for other anchor elements, most notably facets. For these, just replace cell with facet.
V is a model of Vertex-On-Cell Iterator
v is an object of type V
c is an object of type V::Cell
The types V::element_type and V::anchor_type can now be named more specifically. The names from the incidence iterator concept remain valid.
Name | Expression | Description |
Vertex type | V::Vertex | synomym to V::element_type |
Cell type | V::Cell |
the cell type V operates upon,
model of Grid Cell |
Anchor type | V::anchor_type |
synonym to V::Cell,
model of Vertex Grid Range |
Name | Expression | Type requirements | return type |
anchor cell | v.TheCell(); | V::Cell const& |
Name | Expression | Precondition | Semantics | Postcondition |
anchor cell | Cell C = v.TheCell(); | v is not singular | get the anchor of v |
c is a valid cell;
c == v.TheCell() |
Complex2D::VertexOnCellIterator, defined in vertex-on-cell2d-it.h.
Grid
Grid Range
Grid Element
Grid Vertex
Grid Cell
Grid Sequence Iterator
Grid Incidence Iterator
Guntram Berti
Vertex-On-Cell (-Facet, ...) Iterator Concept |