1 #ifndef TAO_ARRAY_VAROUT_T_CPP
2 #define TAO_ARRAY_VAROUT_T_CPP
4 #include "tao/Array_VarOut_T.h"
6 #if !defined (__ACE_INLINE__)
7 #include "tao/Array_VarOut_T.inl"
8 #endif /* __ACE_INLINE__ */
11 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
13 template<typename T
, typename T_slice
, typename TAG
>
14 TAO_FixedArray_Var_T
<T
,T_slice
,TAG
> &
15 TAO_FixedArray_Var_T
<T
,T_slice
,TAG
>::operator= (T_slice
* p
)
17 // Is what we own the same that is being assigned to us?
20 // Delete our stuff and assume ownership of p.
21 TAO::Array_Traits
<FORANY
>::free (this->ptr_
);
28 template<typename T
, typename T_slice
, typename TAG
>
29 TAO_FixedArray_Var_T
<T
,T_slice
,TAG
> &
30 TAO_FixedArray_Var_T
<T
,T_slice
,TAG
>::operator= (
31 const TAO_FixedArray_Var_T
<T
,T_slice
,TAG
> & p
36 TAO::Array_Traits
<FORANY
>::free (this->ptr_
);
39 this->ptr_
= TAO::Array_Traits
<FORANY
>::dup (p
.in ());
45 // *************************************************************
47 template<typename T
, typename T_slice
, typename TAG
>
48 TAO_VarArray_Var_T
<T
,T_slice
,TAG
> &
49 TAO_VarArray_Var_T
<T
,T_slice
,TAG
>::operator= (T_slice
* p
)
51 // Is what we own the same that is being assigned to us?
54 // Delete our stuff and assume ownership of p.
55 TAO::Array_Traits
<FORANY
>::free (this->ptr_
);
62 template<typename T
, typename T_slice
, typename TAG
>
63 TAO_VarArray_Var_T
<T
,T_slice
,TAG
> &
64 TAO_VarArray_Var_T
<T
,T_slice
,TAG
>::operator= (
65 const TAO_VarArray_Var_T
<T
,T_slice
,TAG
> & p
70 TAO::Array_Traits
<FORANY
>::free (this->ptr_
);
73 this->ptr_
= TAO::Array_Traits
<FORANY
>::dup (p
.in ());
79 // *************************************************************
81 template<typename T
, typename T_slice
, typename TAG
>
83 TAO_Array_Forany_T
<T
,T_slice
,TAG
>::_tao_any_destructor (
84 void * _tao_void_pointer
87 T_slice
* tmp
= static_cast<T_slice
*> (_tao_void_pointer
);
88 TAO::Array_Traits
<FORANY
>::free (tmp
);
91 TAO_END_VERSIONED_NAMESPACE_DECL
93 #endif /* TAO_ARRAY_VAROUT_T_CPP */