blob: 704f551123628dcb0f500646d88eb8a03df21d22 (
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
|
// $Id$
ACE_INLINE CORBA::ULong
CORBA_Principal::_incr_refcnt (void)
{
return this->refcount_++;
}
ACE_INLINE CORBA::ULong
CORBA_Principal::_decr_refcnt (void)
{
{
this->refcount_--;
if (this->refcount_ != 0)
return this->refcount_;
}
delete this;
return 0;
}
ACE_INLINE CORBA::Boolean
CORBA::is_nil (CORBA::Principal_ptr principal)
{
return (CORBA::Boolean) (principal == 0);
}
ACE_INLINE CORBA_Principal*
CORBA_Principal::_duplicate (CORBA_Principal* x)
{
if (x != 0)
x->_incr_refcnt ();
return x;
}
ACE_INLINE CORBA_Principal*
CORBA_Principal::_nil (void)
{
return 0;
}
|