Microsoft.Samples.Collections.Heap.HeapEnumerator Class
Simple unordered enumerator for heaps

Access: Private
Base Classes: Object
Implemented interfaces: IEnumerator, ICloneable
  Members Description  
    heap The heap being enumerated

 
    index How far through the heap we are

 
    version Version stamp to allow enumerators to know if they are invalid

 
    HeapEnumerator Constructor solely for the use of the GetEnumerator method on the heap

 
    IEnumerator.Reset Sets the enumerator to its initial position, which is before the first element in the collection.

 
    IEnumerator.Current Gets the current element in the heap being enumerated.

 
    IEnumerator.MoveNext Advances the enumerator to the next element of the heap.

 
    ICloneable.Clone Create a copy of the enumerator referencing the same hashtable and position.