Logo Search packages:      
Sourcecode: ktechlab version File versions

void BTreeNode::deleteChildren (  ) 

Used for debugging purposes; prints the tree structure to stdout. Recursively delete all children of a node.

Definition at line 44 of file btreenode.cpp.

References deleteChildren().

Referenced by deleteChildren(), BTreeBase::deleteTree(), and BTreeBase::pruneTree().

{
      if(m_left)
      {
            m_left->deleteChildren();
            delete m_left;
      }
      if(m_right)
      {
            m_right->deleteChildren();
            delete m_right;
      }
      
      m_left = 0L;
      m_right = 0L;
      
      return;
}


Generated by  Doxygen 1.6.0   Back to index