예제 #1
0
 public virtual Tree Remove()
 {
     if (_subsequent != null && _preceding != null)
     {
         _subsequent            = _subsequent.RotateSmallestUp();
         _subsequent._preceding = _preceding;
         _subsequent.CalculateSize();
         return(_subsequent);
     }
     if (_subsequent != null)
     {
         return(_subsequent);
     }
     return(_preceding);
 }
예제 #2
0
파일: Tree.cs 프로젝트: erdincay/db4o
		public virtual Tree Remove()
		{
			if (_subsequent != null && _preceding != null)
			{
				_subsequent = _subsequent.RotateSmallestUp();
				_subsequent._preceding = _preceding;
				_subsequent.CalculateSize();
				return _subsequent;
			}
			if (_subsequent != null)
			{
				return _subsequent;
			}
			return _preceding;
		}