The Iterator Incantation
Traversing complex ward structures without exposing their underlying representation.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Iterator
ARCANUM SCHOOL: Abjuration // Matrix Traversal
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ADA PATTERN //
package Ward_Iterators is
type Iterator is abstract tagged null record;
function Has_Next (I : Iterator) return Boolean is abstract;
procedure Next (I : in out Iterator) is abstract;
type Aggregate is abstract tagged null record;
function Create_Iterator (A : Aggregate) return Iterator'Class is abstract;
end Ward_Iterators;
A shield matrix might be a simple array, or a multi-dimensional topological map. The Iterator lets an inspector safely traverse these nodes to monitor stability without needing to understand the hyper-spatial geometry of the data structure.
Runic Tags:
#ada
#abjuration
#iterator