blob: 06d2170594106c41208552172858e8e5407e8264 (
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
26
27
28
29
30
31
32
33
|
// -*- C++ -*-
//
// $Id$
ACE_INLINE int
TAO_LB_ObjectGroup_Equal_To::operator() (
const TAO_PortableGroup::ObjectGroup_ptr &lhs,
const TAO_PortableGroup::ObjectGroup_ptr &rhs) const
{
// As with all CORBA objects, the
// TAO_PortableGroup::ObjectGroup::is_equivalent() returns 1 if two
// references refer to the same object. However, it is possible
// that is_equivalent() may return 0 even if both references refer
// to the same object.
return lhs->_is_equivalent (rhs);
}
ACE_INLINE int
TAO_LB_FactoryCreationId_Equal_To::operator() (
const TAO_PortableGroup::FactoryCreationId &lhs,
const TAO_PortableGroup::FactoryCreationId &rhs) const
{
// A Load Balancer FactoryCreationId is simply a CORBA::ULong.
CORBA::ULong lhs_id, rhs_id;
lhs >>= lhs_id;
rhs >>= rhs_id;
return (lhs_id == rhs_id);
}
|