FlatEnumerator<TKey,TValue> class
Abstract base class for all BinarySearchTree enumerators. Implements an Enumerator for a Binary Search Tree by traversing the entire tree at Construction and flattening it according to the rules of the enumerator.
public abstract class FlatEnumerator<TKey, TValue> : IEnumerator<KeyValuePair<TKey, TValue>>
where TKey : IComparable<TKey>
Public Members
name |
description |
FlatEnumerator(…) |
Standard Constructor. |
Current { get; } |
Gets the current element in the collection. |
Key { get; } |
Gets the key of the current dictionary entry. |
Value { get; } |
Gets the value of the current dictionary entry. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
MoveNext() |
Advances the enumerator to the next element of the collection. |
Reset() |
Sets the enumerator to its initial position, which is before the first element in the collection. |
Protected Members
name |
description |
abstract Traverse(…) |
Defines a traversal function for shallow copying the elements from the BinarySearchTree into the passed in ArrayList. |
See Also