public DictionaryIterator(CamDictionary <E> dictionary) { queue = new Queue <E>(); this.dictionary = dictionary; lastOperationNext = false; lastItemReturned = default(E); buildQueue(dictionary.root); dictionary.treeModified = false; }
public DictionaryIterator(CamDictionary <E> dictionary, E startingItem) { queue = new Queue <E>(); this.dictionary = dictionary; lastOperationNext = false; lastItemReturned = default(E); Node <E> startingNode = dictionary.search(startingItem); buildQueue(dictionary.root, startingNode); dictionary.treeModified = false; }