First page Back Continue Last page Overview Graphics
Motivation -- Approach 3:
Separate Iterator
- Con: Iterator needs access to items
- Con: Need way to associate Iterator with
Aggregate
- Parameter to Iterator constructor
- Con: How to efficiently store position?
- Pos parameter to Get, AddItem, RemoveItem, ...
- Especially recursive Aggregates