Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KX_HashedPtr.h

Go to the documentation of this file.
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

Generated at Thu Feb 1 13:03:05 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000