Example #1
0
 public void updateTree(B_Tree <ComparableInt> b_Tree)
 {
     bTree = b_Tree;
     Invalidate();
     foundedKey  = null;
     foundedNode = null;
 }
Example #2
0
 public void updateTreeWithFoundedElement(B_Tree <ComparableInt> b_Tree, ComparableInt key, B_Tree_Node <ComparableInt> inNode)
 {
     foundedKey  = key;
     foundedNode = inNode;
     bTree       = b_Tree;
     Invalidate();
 }
Example #3
0
 public int CompareTo(object obj)
 {
     if (obj is ComparableInt)
     {
         ComparableInt n = obj as ComparableInt;
         return(Value.CompareTo(n.Value));
     }
     else
     {
         throw new ArgumentException();
     }
 }