6 /// Summary description for Node.
10 protected int _iBalance; // currently, -2 means 'deleted'
11 internal Node _nNext; // node of next index (nNext==null || nNext.iId=iId+1)
12 protected Node _nLeft;
13 protected Node _nRight;
14 protected Node _nParent;
16 protected DataRow _row;
18 public Node(DataRow row)
23 internal int GetBalance()
26 throw new Exception ("Node is deleted.");
31 internal void Delete()
51 throw new Exception ("Node is deleted.");
58 throw new Exception ("Node is deleted.");
68 throw new Exception ("Node is deleted.");
74 throw new Exception ("Node is deleted.");
85 throw new Exception ("Node is deleted.");
92 throw new Exception ("Node is deleted.");
97 internal bool IsRoot()
99 return _nParent == null;
103 internal void SetBalance(int b)
107 throw new Exception ("Node is deleted.");
120 throw new Exception ("Node is deleted.");
121 Node parent = Parent;
123 return Equals(parent.Left);
126 internal Object[] GetData()
130 throw new Exception ("Node is deleted.");
131 return _row.ItemArray;
134 internal bool Equals(Node n)
138 throw new Exception ("Node is deleted.");