• Home
  • Raw
  • Download

Lines Matching refs:InsertRes

106     bool DoInsertion(unsigned FileIndex, int Delta, InsertResult *InsertRes);
108 void DoSplit(InsertResult &InsertRes);
180 InsertResult *InsertRes) { in DoInsertion() argument
215 assert(InsertRes && "No result location specified"); in DoInsertion()
216 DoSplit(*InsertRes); in DoInsertion()
218 if (InsertRes->Split.FileLoc > FileIndex) in DoInsertion()
219 InsertRes->LHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
221 InsertRes->RHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
227 if (!IN->Children[i]->DoInsertion(FileIndex, Delta, InsertRes)) in DoInsertion()
239 IN->Children[i] = InsertRes->LHS; in DoInsertion()
240 IN->Children[i+1] = InsertRes->RHS; in DoInsertion()
244 Values[i] = InsertRes->Split; in DoInsertion()
252 IN->Children[i] = InsertRes->LHS; in DoInsertion()
253 DeltaTreeNode *SubRHS = InsertRes->RHS; in DoInsertion()
254 SourceDelta SubSplit = InsertRes->Split; in DoInsertion()
257 DoSplit(*InsertRes); in DoInsertion()
261 if (SubSplit.FileLoc < InsertRes->Split.FileLoc) in DoInsertion()
262 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->LHS); in DoInsertion()
264 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->RHS); in DoInsertion()
293 void DeltaTreeNode::DoSplit(InsertResult &InsertRes) { in DoSplit() argument
326 InsertRes.LHS = this; in DoSplit()
327 InsertRes.RHS = NewNode; in DoSplit()
328 InsertRes.Split = Values[WidthFactor-1]; in DoSplit()
455 DeltaTreeNode::InsertResult InsertRes; in AddDelta() local
456 if (MyRoot->DoInsertion(FileIndex, Delta, &InsertRes)) { in AddDelta()
457 Root = MyRoot = new DeltaTreeInteriorNode(InsertRes); in AddDelta()