Next | "Design Patterns" Aren't | 4 |
You have a collection object
You want to iterate over the elements of the collection
Without exposing any internals
To do this, you get out the Design Patterns book
You build an iterator class the way it says
Using the sample C++ code provided
Then you do it over for the next collection class
And the next
And the next
Next | Copyright © 2002 M. J. Dominus |