summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectGroup_Hash.inl
blob: fe12be1ad3fba4f3436103a91fcec7f21251a6d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// -*- C++ -*-
//
// $Id$

ACE_INLINE CORBA::ULong
TAO_LB_ObjectGroup_Hash::operator() (
  const TAO_LoadBalancing::ObjectGroup_ptr &object_group) const
{
  CORBA::ULong max = 4294967295UL;  // Maximum 32-bit unsigned integer
  return object_group->_hash (max);
}

// -------------------------------------------------------------------

ACE_INLINE CORBA::ULong
TAO_LB_FactoryCreationId_Hash::operator() (
  const TAO_LoadBalancing::FactoryCreationId &factory_creation_id) const
{
  // A Load Balancer FactoryCreationId is simply a CORBA::ULong.

  CORBA::ULong id;
  factory_creation_id >>= id;

  return id;
}