Lines Matching refs:iHeight
2200 int iHeight, /* Height of sub-tree rooted at pCell */ in ChooseLeaf() argument
2208 for(ii=0; rc==SQLITE_OK && ii<(pRtree->iDepth-iHeight); ii++){ in ChooseLeaf()
2559 int iHeight in updateMapping() argument
2562 xSetMapping = ((iHeight==0)?rowidWrite:parentWrite); in updateMapping()
2563 if( iHeight>0 ){ in updateMapping()
2583 int iHeight in SplitNode() argument
2657 rc = rtreeInsertCell(pRtree, pLeft->pParent, &leftbbox, iHeight+1); in SplitNode()
2674 if( (rc = rtreeInsertCell(pRtree, pRight->pParent, &rightbbox, iHeight+1)) ){ in SplitNode()
2680 rc = updateMapping(pRtree, iRowid, pRight, iHeight); in SplitNode()
2691 rc = updateMapping(pRtree, iRowid, pLeft, iHeight); in SplitNode()
2697 rc = updateMapping(pRtree, pCell->iRowid, pLeft, iHeight); in SplitNode()
2762 static int removeNode(Rtree *pRtree, RtreeNode *pNode, int iHeight){ in removeNode() argument
2775 rc = deleteCell(pRtree, pParent, iCell, iHeight+1); in removeNode()
2804 pNode->iNode = iHeight; in removeNode()
2839 static int deleteCell(Rtree *pRtree, RtreeNode *pNode, int iCell, int iHeight){ in deleteCell() argument
2861 rc = removeNode(pRtree, pNode, iHeight); in deleteCell()
2874 int iHeight in Reinsert() argument
2940 if( iHeight==0 ){ in Reinsert()
2956 rc = ChooseLeaf(pRtree, p, iHeight, &pInsert); in Reinsert()
2959 rc = rtreeInsertCell(pRtree, pInsert, p, iHeight); in Reinsert()
2979 int iHeight in rtreeInsertCell() argument
2982 if( iHeight>0 ){ in rtreeInsertCell()
2991 if( iHeight<=pRtree->iReinsertHeight || pNode->iNode==1){ in rtreeInsertCell()
2992 rc = SplitNode(pRtree, pNode, pCell, iHeight); in rtreeInsertCell()
2994 pRtree->iReinsertHeight = iHeight; in rtreeInsertCell()
2995 rc = Reinsert(pRtree, pNode, pCell, iHeight); in rtreeInsertCell()
3000 if( iHeight==0 ){ in rtreeInsertCell()