summaryrefslogtreecommitdiff
path: root/TAO/tao/Valuetype/AbstractBase.inl
blob: 9e4329c0358b28d7a02f7b63a9f17a911c8901f6 (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
// -*- C++ -*-
#include "ace/OS_NS_string.h"

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE
CORBA::AbstractBase_ptr
CORBA::AbstractBase::_duplicate (CORBA::AbstractBase_ptr obj)
{
  if (obj)
    {
      obj->_add_ref ();
    }

  return obj;
}

ACE_INLINE
CORBA::AbstractBase_ptr
CORBA::AbstractBase::_nil ()
{
  return nullptr;
}

ACE_INLINE CORBA::AbstractBase_ptr
CORBA::AbstractBase::_narrow (CORBA::AbstractBase_ptr obj)
{
  return CORBA::AbstractBase::_duplicate (obj);
}

ACE_INLINE
CORBA::Boolean
CORBA::AbstractBase::_is_objref () const
{
  return this->is_objref_;
}

ACE_INLINE
TAO_Stub *
CORBA::AbstractBase::_stubobj () const
{
  if (this->is_objref_)
    {
      if (!CORBA::is_nil (this->equivalent_obj_.in ()))
        {
          return this->equivalent_obj_->_stubobj ();
        }
    }
  return 0;
}

ACE_INLINE
CORBA::Boolean
CORBA::AbstractBase::_is_collocated () const
{
  return this->is_collocated_;
}

ACE_INLINE
TAO_Abstract_ServantBase *
CORBA::AbstractBase::_servant () const
{
  return this->servant_;
}

ACE_INLINE
CORBA::Object_ptr
CORBA::AbstractBase::equivalent_objref ()
{
  return this->equivalent_obj_.in ();
}

ACE_INLINE void
CORBA::AbstractBase::_decr_refcount ()
{
  this->_remove_ref ();
}

TAO_END_VERSIONED_NAMESPACE_DECL