Files Classes Functions Hierarchy
00001 #ifndef HASHFUNCTION01_H 00002 #define HASHFUNCTION01_H 00003 00004 #include <typedefs.h> 00005 00006 00007 /* 00008 \brief A general hash function found in public domain. 00009 It can be used for many applications. 00010 00011 I no longer have the reference. It is easy to change 00012 the numbers if you want your own anyway. 00013 */ 00014 class hashfunction01 00015 { 00016 public: 00017 00019 uint nloops; 00020 00022 hashfunction01(); 00023 00025 void construct(uint nloops_) 00026 { nloops=nloops_; } 00027 00030 hashfunction01(uintc nloops_); 00031 00033 uintc operator()(uintc key) const; 00034 00035 }; 00036 00037 00038 #endif 00039 00040 00041 00042
1.5.8