Lines Matching refs:InsertRes

110     bool DoInsertion(unsigned FileIndex, int Delta, InsertResult *InsertRes);
112 void DoSplit(InsertResult &InsertRes);
186 InsertResult *InsertRes) { in DoInsertion() argument
221 assert(InsertRes && "No result location specified"); in DoInsertion()
222 DoSplit(*InsertRes); in DoInsertion()
224 if (InsertRes->Split.FileLoc > FileIndex) in DoInsertion()
225 InsertRes->LHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
227 InsertRes->RHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
233 if (!IN->Children[i]->DoInsertion(FileIndex, Delta, InsertRes)) in DoInsertion()
245 IN->Children[i] = InsertRes->LHS; in DoInsertion()
246 IN->Children[i+1] = InsertRes->RHS; in DoInsertion()
250 Values[i] = InsertRes->Split; in DoInsertion()
258 IN->Children[i] = InsertRes->LHS; in DoInsertion()
259 DeltaTreeNode *SubRHS = InsertRes->RHS; in DoInsertion()
260 SourceDelta SubSplit = InsertRes->Split; in DoInsertion()
263 DoSplit(*InsertRes); in DoInsertion()
267 if (SubSplit.FileLoc < InsertRes->Split.FileLoc) in DoInsertion()
268 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->LHS); in DoInsertion()
270 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->RHS); in DoInsertion()
299 void DeltaTreeNode::DoSplit(InsertResult &InsertRes) { in DoSplit() argument
332 InsertRes.LHS = this; in DoSplit()
333 InsertRes.RHS = NewNode; in DoSplit()
334 InsertRes.Split = Values[WidthFactor-1]; in DoSplit()
460 DeltaTreeNode::InsertResult InsertRes; in AddDelta() local
461 if (MyRoot->DoInsertion(FileIndex, Delta, &InsertRes)) { in AddDelta()
462 Root = MyRoot = new DeltaTreeInteriorNode(InsertRes); in AddDelta()