Back to index

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

#include <btHashMap.h>

List of all members.

Public Member Functions

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

Private Attributes

int m_uid

Detailed Description

template<class Value>
class btHashKeyPtr< Value >

Definition at line 46 of file btHashMap.h.


Constructor & Destructor Documentation

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

Definition at line 51 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 btHashKeyPtr< Value >::getHash ( ) const [inline]

Definition at line 62 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 >
btHashKeyPtr btHashKeyPtr< Value >::getKey ( const Value &  value) const [inline]

Definition at line 75 of file btHashMap.h.

       {
              return btHashKeyPtr(value->getUid());
       }

Here is the call graph for this function:

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

Definition at line 56 of file btHashMap.h.

       {
              return m_uid;
       }

Member Data Documentation

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

Definition at line 48 of file btHashMap.h.


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