Prev Up
Go backward to Vertex-On-Cell (-Facet, ...) Iterator Concept
Go up to Grid Iterators

Cell-On-Cell Iterator Concept

Description
A Cell-On-Cell Iterator refines the concept of Grid Incidence Iterator . (Strictly speaking, it is not an incidence iterator, but an adjacency iterator, because two cells cannot be incident). It allows to access all cells adjacent to a given cell.
Refinement of
Incidence Iterator
Notation
C is a model of Cell-On-Cell Iterator
c is an object of type C
c1, c2 are objects of type C::Cell
Associated types
The types C::element_type and C::anchor_type can now be named more specifically. The names from the incidence iterator concept remain valid.
Name Expression Description
Cell type C::Cell synomym to C::element_type
Anchor type C::anchor_type synonym to C::Cell,

model of Cell Grid Range

Valid Expressions
Name Expression Type requirements return type
anchor cell c.TheCell();   C::Cell const&
Expression semantics
Name Expression Precondition Semantics Postcondition
anchor cell Cell c1 = c.TheCell(); c is not singular get the anchor of c c1 is a valid cell;

c1 == c.TheCell()

Refinements
Models
Complex2D::CellOnCellIterator defined in cell-on-cell2d-it.h.
Notes
See also
Grid   Grid Range  
Grid Element   Grid Cell  
Grid Sequence Iterator   Grid Incidence Iterator  
Guntram Berti

Prev Up