byucc.jhdl.synth.graph
Class EnumerationIterator

java.lang.Object
  extended bybyucc.jhdl.synth.graph.VectorIterator
      extended bybyucc.jhdl.synth.graph.EnumerationIterator
All Implemented Interfaces:
GenericIterator, IndexedIterator
Direct Known Subclasses:
HashtableElementsIterator, HashtableKeysIterator

public class EnumerationIterator
extends VectorIterator

An object to allow the IndexedIterator methods to be used on an Enumeration. When a new EnumerationIterator is constructed all elements of the enumeration will be consumed and copied into a local data structure which can be iterated. (For this reason, the Enumeration passed in should be of finite size so that the constructor does no go into an infinite loop.)

Author:
Carl Worth

Constructor Summary
EnumerationIterator(java.util.Enumeration e)
          Construct a new EnumerationIterator from an Enumeration.
 
Methods inherited from class byucc.jhdl.synth.graph.VectorIterator
deleteElt, deleteEltAt, first, getElt, getEltAt, isValid, last, moveTo, moveTo, next, prev, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumerationIterator

public EnumerationIterator(java.util.Enumeration e)
Construct a new EnumerationIterator from an Enumeration. This constructor will consume all elements of e, so there should be a finite number of elements, unless you were wanting to cause an inifinite loop.

Parameters:
e - An Enumeration that will be copied into a local structure that will allow iteration.


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.