Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Private Attributes
btHashKey< Value > Class Template Reference

#include <btHashMap.h>

List of all members.

Public Member Functions

 btHashKey (int uid)
int getUid () const
SIMD_FORCE_INLINE unsigned int getHash () const
btHashKey getKey (const Value &value) const

Private Attributes

int m_uid

Detailed Description

template<class Value>
class btHashKey< Value >

Definition at line 9 of file btHashMap.h.


Constructor & Destructor Documentation

template<class Value >
btHashKey< Value >::btHashKey ( int  uid) [inline]

Definition at line 14 of file btHashMap.h.

              :m_uid(uid)
       {
       }

Here is the caller graph for this function:


Member Function Documentation

template<class Value >
SIMD_FORCE_INLINE unsigned int btHashKey< Value >::getHash ( ) const [inline]

Definition at line 25 of file btHashMap.h.

       {
              int key = m_uid;
              // Thomas Wang's hash
              key += ~(key << 15);
              key ^=  (key >> 10);
              key +=  (key << 3);
              key ^=  (key >> 6);
              key += ~(key << 11);
              key ^=  (key >> 16);
              return key;
       }
template<class Value >
btHashKey btHashKey< Value >::getKey ( const Value &  value) const [inline]

Definition at line 38 of file btHashMap.h.

       {
              return btHashKey(value.getUid());
       }

Here is the call graph for this function:

template<class Value >
int btHashKey< Value >::getUid ( ) const [inline]

Definition at line 19 of file btHashMap.h.

       {
              return m_uid;
       }

Member Data Documentation

template<class Value >
int btHashKey< Value >::m_uid [private]

Definition at line 11 of file btHashMap.h.


The documentation for this class was generated from the following file: