summaryrefslogtreecommitdiff
path: root/trunk/TAO/tao/DynamicInterface/DII_Reply_Handler.inl
blob: cfc16dc9b362f1b5a4864ccc6b852a97a5c80aca (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// -*- C++ -*-
// $Id$

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE TAO_DII_Reply_Handler_ptr
TAO_DII_Reply_Handler::_duplicate (TAO_DII_Reply_Handler_ptr x)
{
  if (x != 0)
    {
      x->_add_ref ();
    }

  return x;
}

// Inline operations for class TAO_DII_Reply_Handler_var
ACE_INLINE
TAO_DII_Reply_Handler_var::TAO_DII_Reply_Handler_var (void)
  : ptr_ (TAO_DII_Reply_Handler::_nil ())
{
}

ACE_INLINE
TAO_DII_Reply_Handler_var::TAO_DII_Reply_Handler_var (
    TAO_DII_Reply_Handler_ptr p)
  : ptr_ (p)
{}

ACE_INLINE
TAO_DII_Reply_Handler_var::~TAO_DII_Reply_Handler_var (void)
{
  CORBA::release (this->ptr_);
}

ACE_INLINE TAO_DII_Reply_Handler_ptr
TAO_DII_Reply_Handler_var::ptr (void) const
{
  return this->ptr_;
}

ACE_INLINE
TAO_DII_Reply_Handler_var::TAO_DII_Reply_Handler_var (
    const TAO_DII_Reply_Handler_var &p)
  : ptr_ (TAO_DII_Reply_Handler::_duplicate (p.ptr ()))
{}

ACE_INLINE TAO_DII_Reply_Handler_var &
TAO_DII_Reply_Handler_var::operator= (TAO_DII_Reply_Handler_ptr p)
{
  CORBA::release (this->ptr_);
  this->ptr_ = p;
  return *this;
}

ACE_INLINE TAO_DII_Reply_Handler_var &
TAO_DII_Reply_Handler_var::operator= (const TAO_DII_Reply_Handler_var &p)
{
  if (this != &p)
    {
      CORBA::release (this->ptr_);
      this->ptr_ = TAO_DII_Reply_Handler::_duplicate (p.ptr ());
    }
  return *this;
}

ACE_INLINE
TAO_DII_Reply_Handler_var::operator const TAO_DII_Reply_Handler_ptr &() const
{
  return this->ptr_;
}

ACE_INLINE
TAO_DII_Reply_Handler_var::operator TAO_DII_Reply_Handler_ptr &()
{
  return this->ptr_;
}

ACE_INLINE TAO_DII_Reply_Handler_ptr
TAO_DII_Reply_Handler_var::operator-> (void) const
{
  return this->ptr_;
}

ACE_INLINE TAO_DII_Reply_Handler_ptr
TAO_DII_Reply_Handler_var::in (void) const
{
  return this->ptr_;
}

ACE_INLINE TAO_DII_Reply_Handler_ptr &
TAO_DII_Reply_Handler_var::inout (void)
{
  return this->ptr_;
}

ACE_INLINE TAO_DII_Reply_Handler_ptr &
TAO_DII_Reply_Handler_var::out (void)
{
  CORBA::release (this->ptr_);
  this->ptr_ = TAO_DII_Reply_Handler::_nil ();
  return this->ptr_;
}

ACE_INLINE TAO_DII_Reply_Handler_ptr
TAO_DII_Reply_Handler_var::_retn (void)
{
  // yield ownership
  TAO_DII_Reply_Handler_ptr val = this->ptr_;
  this->ptr_ = TAO_DII_Reply_Handler::_nil ();
  return val;
}
TAO_END_VERSIONED_NAMESPACE_DECL