Searched refs:lastPairIndex (Results 1 – 3 of 3) sorted by relevance
223 int lastPairIndex = m_overlappingPairArray.size() - 1; in removeOverlappingPair() local226 if (lastPairIndex == pairIndex) in removeOverlappingPair()233 const btSimplePair* last = &m_overlappingPairArray[lastPairIndex]; in removeOverlappingPair()241 while (index != lastPairIndex) in removeOverlappingPair()249 btAssert(m_next[previous] == lastPairIndex); in removeOverlappingPair()250 m_next[previous] = m_next[lastPairIndex]; in removeOverlappingPair()254 m_hashTable[lastHash] = m_next[lastPairIndex]; in removeOverlappingPair()258 m_overlappingPairArray[pairIndex] = m_overlappingPairArray[lastPairIndex]; in removeOverlappingPair()
332 int lastPairIndex = m_valueArray.size() - 1; in remove() local335 if (lastPairIndex == pairIndex) in remove()343 int lastHash = m_keyArray[lastPairIndex].getHash() & (m_valueArray.capacity()-1); in remove()349 while (index != lastPairIndex) in remove()357 btAssert(m_next[previous] == lastPairIndex); in remove()358 m_next[previous] = m_next[lastPairIndex]; in remove()362 m_hashTable[lastHash] = m_next[lastPairIndex]; in remove()366 m_valueArray[pairIndex] = m_valueArray[lastPairIndex]; in remove()367 m_keyArray[pairIndex] = m_keyArray[lastPairIndex]; in remove()
327 int lastPairIndex = m_overlappingPairArray.size() - 1; in removeOverlappingPair() local333 if (lastPairIndex == pairIndex) in removeOverlappingPair()340 const btBroadphasePair* last = &m_overlappingPairArray[lastPairIndex]; in removeOverlappingPair()348 while (index != lastPairIndex) in removeOverlappingPair()356 btAssert(m_next[previous] == lastPairIndex); in removeOverlappingPair()357 m_next[previous] = m_next[lastPairIndex]; in removeOverlappingPair()361 m_hashTable[lastHash] = m_next[lastPairIndex]; in removeOverlappingPair()365 m_overlappingPairArray[pairIndex] = m_overlappingPairArray[lastPairIndex]; in removeOverlappingPair()