summaryrefslogtreecommitdiff
path: root/TAO/tao/DynamicInterface/Context.inl
blob: 87c338e31e09edb084a71a68e2c116a2bc6b899a (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
// -*- C++ -*-
//
// $Id$

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE
void
CORBA::release (CORBA::Context_ptr x)
{
  if (x != 0)
    {
      x->_decr_refcnt ();
    }
}

ACE_INLINE
CORBA::Boolean
CORBA::is_nil (CORBA::Context_ptr x)
{
  return (CORBA::Boolean) (x == 0);
}

ACE_INLINE
void
CORBA::release (CORBA::ContextList *x)
{
  if (x != 0)
    {
      x->_decr_refcnt ();
    }
}

ACE_INLINE
CORBA::Boolean
CORBA::is_nil (CORBA::ContextList_ptr x)
{
  return (CORBA::Boolean) (x == 0);
}

// ===================================================================

ACE_INLINE
CORBA::Context_ptr
CORBA::Context::_duplicate (CORBA::Context_ptr x)
{
  if (x != 0)
    {
      x->_incr_refcnt ();
    }

  return x;
}

ACE_INLINE
CORBA::Context_ptr
CORBA::Context::_nil (void)
{
  return (CORBA::Context_ptr)0;
}

// *************************************************************
// Inline operations for class CORBA::ContextList
// *************************************************************

ACE_INLINE
CORBA::ContextList::ContextList (void)
{
}

ACE_INLINE
CORBA::ULong
CORBA::ContextList::count (void)
{
  return (CORBA::ULong) this->ctx_list_.size ();
}

ACE_INLINE
CORBA::ContextList_ptr
CORBA::ContextList::_nil (void)
{
  return (CORBA::ContextList_ptr)0;
}

ACE_INLINE
CORBA::ContextList_ptr
CORBA::ContextList::_duplicate (CORBA::ContextList_ptr x)
{
  if (x != 0)
    {
      x->_incr_refcnt ();
    }

  return x;
}

TAO_END_VERSIONED_NAMESPACE_DECL