Lines Matching refs:InsertRes

109     bool DoInsertion(unsigned FileIndex, int Delta, InsertResult *InsertRes);
111 void DoSplit(InsertResult &InsertRes);
185 InsertResult *InsertRes) { in DoInsertion() argument
220 assert(InsertRes && "No result location specified"); in DoInsertion()
221 DoSplit(*InsertRes); in DoInsertion()
223 if (InsertRes->Split.FileLoc > FileIndex) in DoInsertion()
224 InsertRes->LHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
226 InsertRes->RHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
232 if (!IN->Children[i]->DoInsertion(FileIndex, Delta, InsertRes)) in DoInsertion()
244 IN->Children[i] = InsertRes->LHS; in DoInsertion()
245 IN->Children[i+1] = InsertRes->RHS; in DoInsertion()
249 Values[i] = InsertRes->Split; in DoInsertion()
257 IN->Children[i] = InsertRes->LHS; in DoInsertion()
258 DeltaTreeNode *SubRHS = InsertRes->RHS; in DoInsertion()
259 SourceDelta SubSplit = InsertRes->Split; in DoInsertion()
262 DoSplit(*InsertRes); in DoInsertion()
266 if (SubSplit.FileLoc < InsertRes->Split.FileLoc) in DoInsertion()
267 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->LHS); in DoInsertion()
269 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->RHS); in DoInsertion()
298 void DeltaTreeNode::DoSplit(InsertResult &InsertRes) { in DoSplit() argument
331 InsertRes.LHS = this; in DoSplit()
332 InsertRes.RHS = NewNode; in DoSplit()
333 InsertRes.Split = Values[WidthFactor-1]; in DoSplit()
459 DeltaTreeNode::InsertResult InsertRes; in AddDelta() local
460 if (MyRoot->DoInsertion(FileIndex, Delta, &InsertRes)) { in AddDelta()
461 Root = new DeltaTreeInteriorNode(InsertRes); in AddDelta()