00001 #ifndef __KX_HASHEDPTR 00002 #define __KX_HASHEDPTR 00003 00004 unsigned int KX_Hash(unsigned int inDWord); 00005 00006 00007 class CHashedPtr 00008 { 00009 void* m_valptr; 00010 public: 00011 CHashedPtr(void* val) : m_valptr(val) {}; 00012 unsigned int hash() const { return KX_Hash((unsigned int) m_valptr);}; 00013 inline friend bool operator ==( const CHashedPtr & rhs,const CHashedPtr & lhs) 00014 { return rhs.m_valptr == lhs.m_valptr;}; 00015 }; 00016 00017 #endif //__KX_HASHEDPTR