summaryrefslogtreecommitdiff
path: root/TAO/tao/AnyTypeCode/TypeCode.inl
blob: cc0d60185b735f829d11d50a2994b8546304fcaa (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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// -*- C++ -*-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL

template<>
ACE_INLINE void
CORBA::release<> (CORBA::TypeCode_ptr obj)
{
  if (obj != 0)
    {
      obj->tao_release ();
    }
}

// --------------------------------------------------------------

ACE_INLINE
CORBA::TypeCode::TypeCode (CORBA::TCKind k)
  : kind_ (k)
{
}

ACE_INLINE CORBA::TypeCode_ptr
CORBA::TypeCode::_duplicate (CORBA::TypeCode_ptr tc)
{
  if (!CORBA::is_nil (tc))
    tc->tao_duplicate ();

  return tc;
}

ACE_INLINE CORBA::TypeCode_ptr
CORBA::TypeCode::_nil (nullptr)
{
  return nullptr;
}

ACE_INLINE CORBA::TCKind
CORBA::TypeCode::kind (void) const
{
  return this->kind_;
}

ACE_INLINE CORBA::TypeCode_ptr
CORBA::TypeCode::get_compact_typecode (void) const
{
  return this->get_compact_typecode_i ();
}

ACE_INLINE char const *
CORBA::TypeCode::id (void) const
{
  return this->id_i ();
}

ACE_INLINE char const *
CORBA::TypeCode::name (void) const
{
  return this->name_i ();
}

ACE_INLINE CORBA::ULong
CORBA::TypeCode::member_count (void) const
{
  return this->member_count_i ();
}

ACE_INLINE char const *
CORBA::TypeCode::member_name (ULong index) const
{
  return this->member_name_i (index);
}

ACE_INLINE CORBA::TypeCode_ptr
CORBA::TypeCode::member_type (ULong index) const
{
  return this->member_type_i (index);
}

ACE_INLINE CORBA::Any *
CORBA::TypeCode::member_label (ULong index) const
{
  return this->member_label_i (index);
}

ACE_INLINE CORBA::TypeCode_ptr
CORBA::TypeCode::discriminator_type (void) const
{
  return this->discriminator_type_i ();
}

ACE_INLINE CORBA::Long
CORBA::TypeCode::default_index (void) const
{
  return this->default_index_i ();
}

ACE_INLINE CORBA::ULong
CORBA::TypeCode::length (void) const
{
  return this->length_i ();
}

ACE_INLINE CORBA::TypeCode_ptr
CORBA::TypeCode::content_type (void) const
{
  return this->content_type_i ();
}

ACE_INLINE CORBA::UShort
CORBA::TypeCode::fixed_digits (void) const
{
  return this->fixed_digits_i ();
}

ACE_INLINE CORBA::UShort
CORBA::TypeCode::fixed_scale (void) const
{
  return this->fixed_scale_i ();
}

ACE_INLINE CORBA::Visibility
CORBA::TypeCode::member_visibility (ULong index) const
{
  return this->member_visibility_i (index);
}

ACE_INLINE CORBA::ValueModifier
CORBA::TypeCode::type_modifier (void) const
{
  return this->type_modifier_i ();
}

ACE_INLINE CORBA::TypeCode_ptr
CORBA::TypeCode::concrete_base_type (void) const
{
  return this->concrete_base_type_i ();
}

ACE_INLINE void
CORBA::TypeCode::_tao_any_destructor (void * x)
{
  ::CORBA::release (static_cast <CORBA::TypeCode_ptr> (x));
}


TAO_END_VERSIONED_NAMESPACE_DECL