TAO_GroupId_Hash Class Reference

Hashing class for Group Ids. More...

#include <Portable_Group_Map.h>

List of all members.

Public Member Functions

u_long operator() (const PortableGroup::TagGroupTaggedComponent *id) const
 Returns hash value.


Detailed Description

Hashing class for Group Ids.

Define the hash() method for Group Ids.

Definition at line 42 of file Portable_Group_Map.h.


Member Function Documentation

u_long TAO_GroupId_Hash::operator() const PortableGroup::TagGroupTaggedComponent *  id  )  const
 

Returns hash value.

Definition at line 153 of file Portable_Group_Map.cpp.

References ACE::hash_pjw().

00154 {
00155   u_long hash =
00156     ACE::hash_pjw ((const char *) id->group_domain_id,
00157                    ACE_OS::strlen ((const char *) id->group_domain_id));
00158 
00159   // Truncate the object_group_id in half for the has.
00160   // Divide by one so that the ACE_U_LongLong representation
00161   // will automatically cast down to a u_long
00162   hash += (u_long) (id->object_group_id / 1);
00163 
00164   hash += id->object_group_ref_version;
00165 
00166   return hash;
00167 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 14:04:54 2006 for TAO_PortableGroup by doxygen 1.3.6