blob: 10a1c8a7ebcfc039806731038b3c5c8d1608ba35 (
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
|
/* -*- C++ -*- */
// $Id$
ACE_INLINE
TAO_Base_Connection_Property::TAO_Base_Connection_Property (void)
{
}
ACE_INLINE
TAO_Base_Connection_Property::TAO_Base_Connection_Property (
TAO_Endpoint *endpoint,
CORBA::Boolean flag)
: endpoint_ (endpoint),
endpoint_flag_ (flag)
{
}
ACE_INLINE
TAO_Base_Connection_Property::~TAO_Base_Connection_Property (void)
{
if (endpoint_flag_)
delete this->endpoint_;
}
ACE_INLINE
TAO_Base_Connection_Property::TAO_Base_Connection_Property (
const TAO_Base_Connection_Property &rhs)
{
this->endpoint_ = rhs.endpoint_->duplicate ();
this->endpoint_flag_ = 1;
}
ACE_INLINE void
TAO_Base_Connection_Property::operator= (
const TAO_Base_Connection_Property &rhs)
{
if (this == &rhs)
return;
this->endpoint_ = rhs.endpoint_->duplicate ();
this->endpoint_flag_ = 1;
}
ACE_INLINE int
TAO_Base_Connection_Property::operator== (
const TAO_Base_Connection_Property &rhs) const
{
return this->endpoint_->is_equivalent (rhs.endpoint_);
}
ACE_INLINE int
TAO_Base_Connection_Property::operator!= (
const TAO_Base_Connection_Property &rhs) const
{
return !(this->endpoint_->is_equivalent (rhs.endpoint_));
}
ACE_INLINE u_long
TAO_Base_Connection_Property::hash (void) const
{
return this->endpoint_->hash ();
}
|