blob: b434038ed112acbf8f4fac82fe6a7b05f7d679a2 (
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
114
115
116
117
118
119
|
// -*- C++ -*-
//
// $Id$
// ****************************************************************
ACE_INLINE
CORBA::Object::Object (int)
: servant_ (0),
is_collocated_ (0),
is_local_ (1),
is_evaluated_ (1),
ior_ (),
orb_core_ (0),
protocol_proxy_ (0),
refcount_ (1),
refcount_lock_ (0)
{
}
ACE_INLINE CORBA::Object_ptr
CORBA::Object::_duplicate (CORBA::Object_ptr obj)
{
if (obj)
{
obj->_add_ref ();
}
return obj;
}
// ************************************************************
// These are in CORBA namespace
ACE_INLINE
void
CORBA::release (CORBA::Object_ptr obj)
{
if (obj)
{
obj->_remove_ref ();
}
}
ACE_INLINE
CORBA::Boolean
CORBA::is_nil (CORBA::Object_ptr obj)
{
if (obj == 0)
{
return 1;
}
return CORBA::Object::is_nil_i (obj);
}
// ************************************************************
// Null pointers represent nil objects.
ACE_INLINE
CORBA::Object_ptr
CORBA::Object::_nil (void)
{
return 0;
}
ACE_INLINE
CORBA::Object_ptr
CORBA::Object::_narrow (CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_NOT_USED)
{
return CORBA::Object::_duplicate (obj);
}
ACE_INLINE
TAO_Stub *
CORBA::Object::_stubobj (void) const
{
return this->protocol_proxy_;
}
ACE_INLINE
CORBA::Boolean
CORBA::Object::marshal (TAO_OutputCDR &cdr)
{
return (cdr << this);
}
ACE_INLINE CORBA::Boolean
CORBA::Object::is_evaluated (void) const
{
return this->is_evaluated_;
}
ACE_INLINE void
CORBA::Object::set_collocated_servant (TAO_Abstract_ServantBase *b)
{
this->servant_ = b;
this->is_collocated_ = 1;
}
ACE_INLINE TAO_ORB_Core *
CORBA::Object::orb_core (void) const
{
return this->orb_core_;
}
ACE_INLINE IOP::IOR *
CORBA::Object::steal_ior (void)
{
return this->ior_._retn ();
}
ACE_INLINE const IOP::IOR &
CORBA::Object::ior (void) const
{
return this->ior_.in ();
}
|