Main Page   Class Hierarchy   Compound List   File List   Compound Members  

THashT.hh

00001 #ifndef _T_HASH_T_HH
00002 #define _T_HASH_T_HH
00003 
00004 #include "TUtil.hh"
00005 
00016 template <class T>
00017 class THashT
00018 {
00019 public:
00020   
00022   static inline unsigned int Hash (const T& x)
00023   {
00024     return (TUtil::Hash ((char *)&x, sizeof (x)));
00025   }
00026   
00028   static inline bool Equal (const T& x, const T& y)
00029   {
00030     return (x == y);
00031   }
00032 };
00033 
00034 #endif // _T_HASH_T_HH

Generated on Sat Feb 15 18:37:16 2003 for Tools by doxygen1.3-rc2