00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PG_Location_Hash.h 00006 * 00007 * PG_Location_Hash.h,v 1.10 2006/03/14 06:14:34 jtc Exp 00008 * 00009 * @author Ossama Othman <ossama@uci.edu> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_PG_LOCATION_HASH_H 00015 #define TAO_PG_LOCATION_HASH_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "ace/config-all.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "orbsvcs/PortableGroup/portablegroup_export.h" 00026 #include "orbsvcs/PortableGroupC.h" 00027 #include "ace/ACE.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 /** 00032 * @class TAO_PG_Location_Hash 00033 * 00034 * @brief Hash function object for generating a hash for a Location. 00035 */ 00036 class TAO_PortableGroup_Export TAO_PG_Location_Hash 00037 { 00038 00039 public: 00040 00041 /// Creates a hash based on all of elements of the given Location 00042 CORBA::ULong operator() (const PortableGroup::Location &) const; 00043 }; 00044 00045 TAO_END_VERSIONED_NAMESPACE_DECL 00046 00047 #if defined (__ACE_INLINE__) 00048 #include "orbsvcs/PortableGroup/PG_Location_Hash.inl" 00049 #endif /* __ACE_INLINE__ */ 00050 00051 #include /**/ "ace/post.h" 00052 00053 #endif /* TAO_PG_LOCATION_HASH_H */