Ejemplo n.º 1
0
        public bool MoveNext()
        {
            if (tree.isEmpty())
            {
                return(false);
            }

            if (initialState == true)
            {
                initialState = false;
                c            = tree.treeMinimum();
            }
            else
            {
                c = tree.treeSuccessor(c);
            }
            return(c != tree.NIL);
        }
Ejemplo n.º 2
0
 internal bool isEmpty()
 {
     return(tree.isEmpty());
 }