コード例 #1
0
 public virtual BTreePointer FirstValidPointer()
 {
     if (null == _pointer)
     {
         return(null);
     }
     if (_pointer.IsValid())
     {
         return(_pointer);
     }
     return(_pointer.Next());
 }
コード例 #2
0
        public virtual void Clear(Transaction transaction)
        {
            BTreePointer currentPointer = FirstPointer(transaction);

            while (currentPointer != null && currentPointer.IsValid())
            {
                BTreeNode node  = currentPointer.Node();
                int       index = currentPointer.Index();
                node.Remove(transaction, index);
                currentPointer = currentPointer.Next();
            }
        }