2
// Hash_Map_Hash.h,v 1.1 2004/01/01 21:01:00 shuston Exp
4
#ifndef __HASH_MAP_HASH_H_
5
#define __HASH_MAP_HASH_H_
8
// Key type that we are going to use.
12
KeyType () : val_(0) {}
14
KeyType (int i) : val_(i) {}
16
KeyType (const KeyType& kt) { this->val_ = kt.val_; }
18
operator int (void) const { return val_; }
24
// Specialize the hash functor.
25
ACE_TEMPLATE_SPECIALIZATION
26
class ACE_Hash<KeyType>
29
u_long operator() (const KeyType kt) const
37
// Specialize the equality functor.
38
ACE_TEMPLATE_SPECIALIZATION
39
class ACE_Equal_To<KeyType>
42
int operator() (const KeyType& kt1,
43
const KeyType& kt2) const
47
return (val1 == val2);
52
#endif /* __HASH_MAP_HASH_H_ */