Example #1
0
 internal RBNode(RBTree.Color color, IComparable item, RBNode p, RBNode left, RBNode right)
 {
     this.color=color;
     this.p=p;
     this.left=left;
     this.right=right;
     this.item=item;
 }
Example #2
0
        internal RBTree Clone()
        {
            RBTree clone = new RBTree();

            foreach (IComparable n in this)
            {
                clone.insert(n);
            }
            return(clone);
        }
Example #3
0
 internal PriorityQueue()
 {
     tree=new RBTree();
 }
Example #4
0
 internal RBTreeEnumerator(RBTree tree)
 {
     this.tree=tree;
     Reset();
 }
Example #5
0
 internal RBNode(RBTree.Color color)
 {
     this.color=color;
 }
Example #6
0
 internal RBTree Clone()
 {
     RBTree clone=new RBTree();
     foreach(IComparable n in this)
     {
         clone.insert(n);
     }
     return clone;
 }
Example #7
0
 internal PriorityQueue()
 {
     tree = new RBTree();
 }
Example #8
0
 internal RBTreeEnumerator(RBTree tree)
 {
     this.tree = tree;
     Reset();
 }