summaryrefslogtreecommitdiff
path: root/TAO/tao/Cache_Entries.i
blob: 877d82b8233b389a58ca75a3060d87e5ef09281a (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* -*- C++ -*- */
// $Id$

ACE_INLINE
TAO_Cache_IntId::TAO_Cache_IntId (void)
  :handle_ (),
   handler_ (0)
{
}

ACE_INLINE
TAO_Cache_IntId::TAO_Cache_IntId (ACE_HANDLE &handle,
                                  TAO_Connection_Handler *handler)
  :handle_ (handle),
   handler_ (handler)
{
}

ACE_INLINE
TAO_Cache_IntId::TAO_Cache_IntId (const TAO_Cache_IntId &rhs)
{
  this->handle_ = rhs.handle_;
}

ACE_INLINE
TAO_Cache_IntId::~TAO_Cache_IntId (void)
{
}

/*******************************************************/
ACE_INLINE
TAO_Cache_ExtId::TAO_Cache_ExtId (void)
  : connection_property_ (0)
{
}

ACE_INLINE
TAO_Cache_ExtId::TAO_Cache_ExtId (TAO_Base_Connection_Property *prop)
  : connection_property_ (prop->duplicate ())
{

}

ACE_INLINE
TAO_Cache_ExtId::~TAO_Cache_ExtId (void)
{
  delete this->connection_property_;
}


ACE_INLINE void
TAO_Cache_ExtId::operator= (const TAO_Cache_ExtId &rhs)
{
  *this->connection_property_ = *rhs.connection_property_;
}

ACE_INLINE int
TAO_Cache_ExtId::operator== (const TAO_Cache_ExtId &rhs)
{
  return *this->connection_property_ == *rhs.connection_property_;
}

ACE_INLINE int
TAO_Cache_ExtId::operator!= (const TAO_Cache_ExtId &rhs)
{
  return *this->connection_property_ != *rhs.connection_property_;
}

ACE_INLINE u_long
TAO_Cache_ExtId::hash (void) const
{
  return this->connection_property_;
}