16#ifndef BT_HASHED_SIMPLE_PAIR_CACHE_H
17#define BT_HASHED_SIMPLE_PAIR_CACHE_H
42#ifdef BT_DEBUG_COLLISION_PAIRS
43extern int gOverlappingSimplePairs;
44extern int gRemoveSimplePairs;
45extern int gAddedSimplePairs;
46extern int gFindSimplePairs;
69#ifdef BT_DEBUG_COLLISION_PAIRS
117 unsigned int key = indexA | (indexB << 16);
const int BT_SIMPLE_NULL_PAIR
btAlignedObjectArray< btSimplePair > btSimplePairArray
#define SIMD_FORCE_INLINE
int size() const
return the number of elements in the array
virtual ~btHashedSimplePairCache()
btSimplePair * internalFindPair(int proxyIdA, int proxyIdB, int hash)
const btSimplePair * getOverlappingPairArrayPtr() const
const btSimplePairArray & getOverlappingPairArray() const
unsigned int getHash(unsigned int indexA, unsigned int indexB)
btSimplePair * internalAddPair(int indexA, int indexB)
virtual btSimplePair * getOverlappingPairArrayPtr()
btAlignedObjectArray< int > m_hashTable
int getNumOverlappingPairs() const
btSimplePairArray & getOverlappingPairArray()
btAlignedObjectArray< int > m_next
btSimplePairArray m_overlappingPairArray
btHashedSimplePairCache()
btSimplePair * findPair(int indexA, int indexB)
virtual btSimplePair * addOverlappingPair(int indexA, int indexB)
bool equalsPair(const btSimplePair &pair, int indexA, int indexB)
virtual void * removeOverlappingPair(int indexA, int indexB)
btSimplePair(int indexA, int indexB)