<<< Iterator Structure     Index     Null Iterator >>>

54. Iterator Sample


  • The Iterator ( download ) sample illustrates a set of Object instances aggregated within ObjectCollection.

  • The Iterator design implements traversal of Objects by a CollectionIterator.

  • The algorithm uses CollectionIterator to access each Object instance and invokes Object::Print() operation to display object IDs.

    Iterator Sample

<<< Iterator Structure     Index     Null Iterator >>>