Example #1
0
 public DictionaryIterator(CamDictionary <E> dictionary)
 {
     queue             = new Queue <E>();
     this.dictionary   = dictionary;
     lastOperationNext = false;
     lastItemReturned  = default(E);
     buildQueue(dictionary.root);
     dictionary.treeModified = false;
 }
Example #2
0
            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;
            }