#include <PG_Location_Hash.h>
Public Member Functions | |
CORBA::ULong | operator() (const PortableGroup::Location &) const |
Creates a hash based on all of elements of the given Location. |
Definition at line 36 of file PG_Location_Hash.h.
|
Creates a hash based on all of elements of the given Location.
Definition at line 8 of file PG_Location_Hash.inl. References ACE::hash_pjw(), and PortableGroup::Location.
00010 { 00011 // @todo Interim implementation until we figure out what to do when a 00012 // location has multiple components. 00013 00014 CORBA::ULong len = location.length (); 00015 CORBA::ULong hash = 0; 00016 00017 for (CORBA::ULong i = 0; i < len; ++i) 00018 hash += 00019 ACE::hash_pjw (location[i].id.in ()) + 00020 ACE::hash_pjw (location[i].kind.in ()); 00021 00022 return hash; 00023 } |