Lines 231-238
Link Here
|
231 |
// HashFunction(unsigned), HashFunction(void const *), HashFunction(char const *) |
231 |
// HashFunction(unsigned), HashFunction(void const *), HashFunction(char const *) |
232 |
// you can disable the default hash functions by defining HT_NODEFAULTFNS |
232 |
// you can disable the default hash functions by defining HT_NODEFAULTFNS |
233 |
|
233 |
|
|
|
234 |
namespace IFF { |
235 |
class RegEntry; |
236 |
}; |
237 |
|
234 |
#ifndef HT_NODEFAULTFNS |
238 |
#ifndef HT_NODEFAULTFNS |
235 |
// a hash function for integral (unsigned) values |
239 |
// a hash function for integral (unsigned) values |
|
|
240 |
inline unsigned int HashFunction(const IFF::RegEntry& rEntry); |
236 |
inline unsigned HashFunction(unsigned const _i) |
241 |
inline unsigned HashFunction(unsigned const _i) |
237 |
{ |
242 |
{ |
238 |
return _i ^ _i>>4 ^ _i>>9 ^ _i>>15 ^ _i>>22; |
243 |
return _i ^ _i>>4 ^ _i>>9 ^ _i>>15 ^ _i>>22; |
Lines 418-424
Link Here
|
418 |
}; |
423 |
}; |
419 |
|
424 |
|
420 |
// a _base_HashTable non-const iterator - can remove entry pointed to |
425 |
// a _base_HashTable non-const iterator - can remove entry pointed to |
421 |
class Iterator : public ConstIterator |
426 |
class Iterator : public _base_HashTable::ConstIterator |
422 |
{ |
427 |
{ |
423 |
// Nested class functions apparently have to be declared here for MSVC compatability |
428 |
// Nested class functions apparently have to be declared here for MSVC compatability |
424 |
public: |
429 |
public: |