void InnerNode::balanceWithLeft( InnerNode* leftsib, int pidx ) { // THIS has more than LEFTSIB; move some item from THIS to LEFTSIB. // PIDX is the index of the parent item that will change when keys // are moved. PRECONDITION( Vsize() >= leftsib->Psize() ); PRECONDITION( parent->getTree(pidx) == this ); int newThisSize = (Vsize() + leftsib->Psize())/2; int noFromThis = Psize() - newThisSize; pushLeft( noFromThis, leftsib, pidx ); }
void *RunVsize(void *arg) { /************************************************* Text_Box1 1 data values *************************************************/ int v0 = 1; void* v[1]; v[0]=(void *)(&v0); void *pt=NULL; /* pointer to send any extra information */ Vsize(NULL,v,pt ); return NULL; }