Пример #1
0
 public NodeAVLDisk(RowAVLDisk r, IRowInputInterface input, int id)
 {
     this._iLeft   = -1;
     this._iParent = -1;
     this._iRight  = -1;
     this.row      = r;
     this._iId     = id;
     this.iData    = r.GetPos();
     base.IBalance = input.ReadInt();
     this._iLeft   = input.ReadInt();
     if (this._iLeft <= 0)
     {
         this._iLeft = -1;
     }
     this._iRight = input.ReadInt();
     if (this._iRight <= 0)
     {
         this._iRight = -1;
     }
     this._iParent = input.ReadInt();
     if (this._iParent <= 0)
     {
         this._iParent = -1;
     }
 }
Пример #2
0
 public NodeAVLDisk(RowAVLDisk r, int id)
 {
     this._iLeft   = -1;
     this._iParent = -1;
     this._iRight  = -1;
     this.row      = r;
     this._iId     = id;
     this.iData    = r.GetPos();
 }