3 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
5 template<typename T, typename T_slice, typename TAG>
7 TAO_Array_Var_Base_T<T,T_slice,TAG>::TAO_Array_Var_Base_T ()
11 template<typename T, typename T_slice, typename TAG>
13 TAO_Array_Var_Base_T<T,T_slice,TAG>::TAO_Array_Var_Base_T (T_slice * p)
17 template<typename T, typename T_slice, typename TAG>
19 TAO_Array_Var_Base_T<T,T_slice,TAG>::TAO_Array_Var_Base_T (
20 const TAO_Array_Var_Base_T & p)
22 this->ptr_ = TAO::Array_Traits<FORANY>::dup (p.in ());
25 template<typename T, typename T_slice, typename TAG>
27 TAO_Array_Var_Base_T<T,T_slice,TAG>::~TAO_Array_Var_Base_T ()
29 TAO::Array_Traits<FORANY>::free (this->ptr_);
32 template<typename T, typename T_slice, typename TAG>
34 TAO_Array_Var_Base_T<T,T_slice,TAG>::operator T_slice * const & () const
39 template<typename T, typename T_slice, typename TAG>
42 TAO_Array_Var_Base_T<T,T_slice,TAG>::operator[] (CORBA::ULong index) const
44 return this->ptr_[index];
47 template<typename T, typename T_slice, typename TAG>
50 TAO_Array_Var_Base_T<T,T_slice,TAG>::operator[] (CORBA::ULong index)
52 return this->ptr_[index];
55 template<typename T, typename T_slice, typename TAG>
58 TAO_Array_Var_Base_T<T,T_slice,TAG>::in () const
60 return const_cast<const T_slice *>(this->ptr_);
63 template<typename T, typename T_slice, typename TAG>
66 TAO_Array_Var_Base_T<T,T_slice,TAG>::inout ()
71 template<typename T, typename T_slice, typename TAG>
74 TAO_Array_Var_Base_T<T,T_slice,TAG>::_retn_arg ()
76 TAO::Array_Traits<FORANY>::free (this->ptr_);
81 template<typename T, typename T_slice, typename TAG>
84 TAO_Array_Var_Base_T<T,T_slice,TAG>::_retn ()
86 T_slice * tmp = this->ptr_;
91 template<typename T, typename T_slice, typename TAG>
94 TAO_Array_Var_Base_T<T,T_slice,TAG>::ptr () const
99 // *************************************************************
101 template<typename T, typename T_slice, typename TAG>
103 TAO_FixedArray_Var_T<T,T_slice,TAG>::TAO_FixedArray_Var_T ()
106 template<typename T, typename T_slice, typename TAG>
108 TAO_FixedArray_Var_T<T,T_slice,TAG>::TAO_FixedArray_Var_T (T_slice * p)
109 : TAO_Array_Var_Base_T<T,T_slice,TAG> (p)
112 template<typename T, typename T_slice, typename TAG>
114 TAO_FixedArray_Var_T<T,T_slice,TAG>::TAO_FixedArray_Var_T (
115 const TAO_FixedArray_Var_T & p)
116 : TAO_Array_Var_Base_T<T,T_slice,TAG> (p)
120 template<typename T, typename T_slice, typename TAG>
123 TAO_FixedArray_Var_T<T,T_slice,TAG>::out ()
128 // *************************************************************
130 template<typename T, typename T_slice, typename TAG>
132 TAO_VarArray_Var_T<T,T_slice,TAG>::TAO_VarArray_Var_T ()
135 template<typename T, typename T_slice, typename TAG>
137 TAO_VarArray_Var_T<T,T_slice,TAG>::TAO_VarArray_Var_T (T_slice * p)
138 : TAO_Array_Var_Base_T<T,T_slice,TAG> (p)
141 template<typename T, typename T_slice, typename TAG>
143 TAO_VarArray_Var_T<T,T_slice,TAG>::TAO_VarArray_Var_T (
144 const TAO_VarArray_Var_T & p)
145 : TAO_Array_Var_Base_T<T,T_slice,TAG> (p)
148 template<typename T, typename T_slice, typename TAG>
150 TAO_VarArray_Var_T<T,T_slice,TAG>::operator T_slice *& ()
155 template<typename T, typename T_slice, typename TAG>
158 TAO_VarArray_Var_T<T,T_slice,TAG>::out ()
160 TAO::Array_Traits<FORANY>::free (this->ptr_);
161 this->ptr_ = nullptr;
165 // *************************************************************
167 template<typename T, typename T_var, typename T_slice, typename TAG>
169 TAO_Array_Out_T<T,T_var,T_slice,TAG>::TAO_Array_Out_T (T_slice *& p)
172 this->ptr_ = nullptr;
175 template<typename T, typename T_var, typename T_slice, typename TAG>
177 TAO_Array_Out_T<T,T_var,T_slice,TAG>::TAO_Array_Out_T (T_var & p)
180 TAO::Array_Traits<FORANY>::free (this->ptr_);
181 this->ptr_ = nullptr;
184 template<typename T, typename T_var, typename T_slice, typename TAG>
186 TAO_Array_Out_T<T,T_var,T_slice,TAG>::TAO_Array_Out_T (
187 const TAO_Array_Out_T<T,T_var,T_slice,TAG> & p)
188 : ptr_ (const_cast<THIS_OUT_TYPE &> (p).ptr_)
191 template<typename T, typename T_var, typename T_slice, typename TAG>
193 TAO_Array_Out_T<T,T_var,T_slice,TAG> &
194 TAO_Array_Out_T<T,T_var,T_slice,TAG>::operator= (
195 const TAO_Array_Out_T<T,T_var,T_slice,TAG> & p)
197 this->ptr_ = const_cast<THIS_OUT_TYPE &> (p).ptr_;
201 template<typename T, typename T_var, typename T_slice, typename TAG>
203 TAO_Array_Out_T<T,T_var,T_slice,TAG> &
204 TAO_Array_Out_T<T,T_var,T_slice,TAG>::operator= (T_slice *p)
210 template<typename T, typename T_var, typename T_slice, typename TAG>
212 TAO_Array_Out_T<T,T_var,T_slice,TAG>::operator T_slice *& ()
217 template<typename T, typename T_var, typename T_slice, typename TAG>
220 TAO_Array_Out_T<T,T_var,T_slice,TAG>::operator[] (CORBA::ULong index)
222 return this->ptr_[index];
225 template<typename T, typename T_var, typename T_slice, typename TAG>
228 TAO_Array_Out_T<T,T_var,T_slice,TAG>::ptr ()
233 // *************************************************************
235 template<typename T, typename T_slice, typename TAG>
237 TAO_Array_Forany_T<T,T_slice,TAG>::TAO_Array_Forany_T ()
242 template<typename T, typename T_slice, typename TAG>
244 TAO_Array_Forany_T<T,T_slice,TAG>::TAO_Array_Forany_T (
246 CORBA::Boolean nocopy)
251 template<typename T, typename T_slice, typename TAG>
253 TAO_Array_Forany_T<T,T_slice,TAG>::TAO_Array_Forany_T (
254 const TAO_Array_Forany_T<T,T_slice,TAG> & p)
260 template<typename T, typename T_slice, typename TAG>
262 TAO_Array_Forany_T<T,T_slice,TAG>::~TAO_Array_Forany_T ()
266 template<typename T, typename T_slice, typename TAG>
268 TAO_Array_Forany_T<T,T_slice,TAG> &
269 TAO_Array_Forany_T<T,T_slice,TAG>::operator= (T_slice * p)
275 template<typename T, typename T_slice, typename TAG>
277 TAO_Array_Forany_T<T,T_slice,TAG> &
278 TAO_Array_Forany_T<T,T_slice,TAG>::operator= (
279 const TAO_Array_Forany_T<T,T_slice,TAG> & p)
282 this->nocopy_ = p.nocopy_;
286 template<typename T, typename T_slice, typename TAG>
288 TAO_Array_Forany_T<T,T_slice,TAG>::operator T_slice * const & () const
293 template<typename T, typename T_slice, typename TAG>
295 TAO_Array_Forany_T<T,T_slice,TAG>::operator T_slice *& ()
300 template<typename T, typename T_slice, typename TAG>
303 TAO_Array_Forany_T<T,T_slice,TAG>::operator[] (CORBA::ULong index) const
305 const T_slice & tmp = this->ptr_[index];
309 template<typename T, typename T_slice, typename TAG>
312 TAO_Array_Forany_T<T,T_slice,TAG>::operator[] (CORBA::ULong index)
314 return this->ptr_[index];
317 template<typename T, typename T_slice, typename TAG>
320 TAO_Array_Forany_T<T,T_slice,TAG>::in () const
325 template<typename T, typename T_slice, typename TAG>
328 TAO_Array_Forany_T<T,T_slice,TAG>::inout ()
333 template<typename T, typename T_slice, typename TAG>
336 TAO_Array_Forany_T<T,T_slice,TAG>::out ()
341 template<typename T, typename T_slice, typename TAG>
344 TAO_Array_Forany_T<T,T_slice,TAG>::_retn ()
349 template<typename T, typename T_slice, typename TAG>
352 TAO_Array_Forany_T<T,T_slice,TAG>::nocopy () const
354 return this->nocopy_;
357 template<typename T, typename T_slice, typename TAG>
360 TAO_Array_Forany_T<T,T_slice,TAG>::ptr () const
365 template<typename T, typename T_slice, typename TAG>
368 TAO_Array_Forany_T<T,T_slice,TAG>::tao_alloc ()
370 return TAO::Array_Traits<FORANY>::alloc ();
373 TAO_END_VERSIONED_NAMESPACE_DECL