Hashing class for Group Ids. More...
#include <Portable_Group_Map.h>
Public Member Functions | |
u_long | operator() (const PortableGroup::TagGroupTaggedComponent *id) const |
Returns hash value. |
Hashing class for Group Ids.
Define the hash() method for Group Ids.
Definition at line 42 of file Portable_Group_Map.h.
u_long TAO_GroupId_Hash::operator() | ( | const PortableGroup::TagGroupTaggedComponent * | id | ) | const |
Returns hash value.
Definition at line 147 of file Portable_Group_Map.cpp.
{ u_long hash = ACE::hash_pjw ((const char *) id->group_domain_id, ACE_OS::strlen ((const char *) id->group_domain_id)); // Truncate the object_group_id in half for the has. // Divide by one so that the ACE_U_LongLong representation // will automatically cast down to a u_long hash += (u_long) (id->object_group_id / 1); hash += id->object_group_ref_version; return hash; }