32 m_blockedForChanges(false)
34 int initialAllocatedSize= 2;
57 int initialAllocatedSize= 2;
113 for (i= 0; i < newCapacity; ++i)
117 for (i = 0; i < newCapacity; ++i)
122 for(i=0;i<curHashtableSize;i++)
156 if (oldCapacity < newCapacity)
203 while (index != pairIndex)
226 if (lastPairIndex == pairIndex)
241 while (index != lastPairIndex)
unsigned int getHash(unsigned int indexA, unsigned int indexB)
btSimplePair * internalFindPair(int proxyIdA, int proxyIdB, int hash)
int gOverlappingSimplePairs
void clear()
clear the array, deallocated memory. Generally it is better to use array.resize(0), to reduce performance overhead of run-time memory (de)allocations.
btHashedSimplePairCache()
const int BT_SIMPLE_NULL_PAIR
int size() const
return the number of elements in the array
btAlignedObjectArray< int > m_hashTable
int capacity() const
return the pre-allocated (reserved) elements, this is at least as large as the total number of elemen...
bool equalsPair(const btSimplePair &pair, int indexA, int indexB)
void resize(int newsize, const T &fillData=T())
btSimplePair * findPair(int indexA, int indexB)
virtual ~btHashedSimplePairCache()
btAlignedObjectArray< int > m_next
T & expandNonInitializing()
virtual void * removeOverlappingPair(int indexA, int indexB)
btSimplePairArray m_overlappingPairArray
btSimplePair * internalAddPair(int indexA, int indexB)