summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp
blob: 48dc8296aa869c5ff8b1131b8e2c282d59ca7a59 (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
34
35
36
#include "LB_LoadAlertInfo.h"
#include "orbsvcs/PortableGroup/PG_Operators.h"

ACE_RCSID (LoadBalancing,
           LB_LoadAlertInfo,
           "$Id$")

TAO_LB_LoadAlertInfo::TAO_LB_LoadAlertInfo (void)
  : load_alert (),
    location (),
    alerted (0)
{
}

int
TAO_LB_LoadAlertInfo::operator== (const TAO_LB_LoadAlertInfo & rhs)
{
  // For the purposes of the LoadAlert info set, only the location is
  // important.
  return this->location == rhs.location;
}


#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)

template class ACE_Node<TAO_LB_LoadAlertInfo>;
template class ACE_Unbounded_Set<TAO_LB_LoadAlertInfo>;
template class ACE_Unbounded_Set_Iterator<TAO_LB_LoadAlertInfo>;

#elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)

#pragma instantiate ACE_Node<TAO_LB_LoadAlertInfo>
#pragma instantiate ACE_Unbounded_Set<TAO_LB_LoadAlertInfo>
#pragma instantiate ACE_Unbounded_Set_Iterator<TAO_LB_LoadAlertInfo>

#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */