summaryrefslogtreecommitdiff
path: root/TAO/tao/Seq_VarOut_T.inl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Seq_VarOut_T.inl')
-rw-r--r--TAO/tao/Seq_VarOut_T.inl124
1 files changed, 98 insertions, 26 deletions
diff --git a/TAO/tao/Seq_VarOut_T.inl b/TAO/tao/Seq_VarOut_T.inl
index a2a606e6af8..09c4455f25a 100644
--- a/TAO/tao/Seq_VarOut_T.inl
+++ b/TAO/tao/Seq_VarOut_T.inl
@@ -21,16 +21,6 @@ TAO_Seq_Var_Base_T<T,T_elem>::~TAO_Seq_Var_Base_T (void)
template<typename T, typename T_elem>
ACE_INLINE
-TAO_Seq_Var_Base_T<T,T_elem> &
-TAO_Seq_Var_Base_T<T,T_elem>::operator= (T * p)
-{
- delete this->ptr_;
- this->ptr_ = p;
- return *this;
-}
-
-template<typename T, typename T_elem>
-ACE_INLINE
const T *
TAO_Seq_Var_Base_T<T,T_elem>::operator-> (void) const
{
@@ -68,22 +58,6 @@ TAO_Seq_Var_Base_T<T,T_elem>::operator T & () const
template<typename T, typename T_elem>
ACE_INLINE
-T_elem &
-TAO_Seq_Var_Base_T<T,T_elem>::operator[] (CORBA::ULong index)
-{
- return this->ptr_->operator[] (index);
-}
-
-template<typename T, typename T_elem>
-ACE_INLINE
-const T_elem &
-TAO_Seq_Var_Base_T<T,T_elem>::operator[] (CORBA::ULong index) const
-{
- return ACE_const_cast (const T_elem &, this->ptr_->operator[] (index));
-}
-
-template<typename T, typename T_elem>
-ACE_INLINE
const T &
TAO_Seq_Var_Base_T<T,T_elem>::in (void) const
{
@@ -156,6 +130,32 @@ TAO_FixedSeq_Var_T<T,T_elem>::TAO_FixedSeq_Var_T (const T & p)
T (p));
}
+template<typename T, typename T_elem>
+ACE_INLINE
+TAO_FixedSeq_Var_T<T,T_elem> &
+TAO_FixedSeq_Var_T<T,T_elem>::operator= (T * p)
+{
+ delete this->ptr_;
+ this->ptr_ = p;
+ return *this;
+}
+
+template<typename T, typename T_elem>
+ACE_INLINE
+T_elem &
+TAO_FixedSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
+template<typename T, typename T_elem>
+ACE_INLINE
+const T_elem &
+TAO_FixedSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index) const
+{
+ return ACE_const_cast (const T_elem &, this->ptr_->operator[] (index));
+}
+
// ***************************************************************
template<typename T, typename T_elem>
@@ -176,6 +176,16 @@ TAO_VarSeq_Var_T<T,T_elem>::TAO_VarSeq_Var_T (
: TAO_Seq_Var_Base_T<T,T_elem> (p)
{}
+template<typename T, typename T_elem>
+ACE_INLINE
+TAO_VarSeq_Var_T<T,T_elem> &
+TAO_VarSeq_Var_T<T,T_elem>::operator= (T * p)
+{
+ delete this->ptr_;
+ this->ptr_ = p;
+ return *this;
+}
+
// Variable-size types only.
template<typename T, typename T_elem>
ACE_INLINE
@@ -184,6 +194,68 @@ TAO_VarSeq_Var_T<T,T_elem>::operator T *& ()
return this->ptr_;
}
+template<typename T, typename T_elem>
+ACE_INLINE
+T_elem &
+TAO_VarSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
+template<typename T, typename T_elem>
+ACE_INLINE
+const T_elem &
+TAO_VarSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index) const
+{
+ return ACE_const_cast (const T_elem &, this->ptr_->operator[] (index));
+}
+
+// ***************************************************************
+
+template<typename T, typename T_elem>
+ACE_INLINE
+TAO_MngSeq_Var_T<T,T_elem>::TAO_MngSeq_Var_T (void)
+{}
+
+template<typename T, typename T_elem>
+ACE_INLINE
+TAO_MngSeq_Var_T<T,T_elem>::TAO_MngSeq_Var_T (T * p)
+ : TAO_Seq_Var_Base_T<T,T_elem> (p)
+{}
+
+template<typename T, typename T_elem>
+TAO_MngSeq_Var_T<T,T_elem>::TAO_MngSeq_Var_T (
+ const TAO_MngSeq_Var_T<T,T_elem> & p
+ )
+ : TAO_Seq_Var_Base_T<T,T_elem> (p)
+{}
+
+template<typename T, typename T_elem>
+ACE_INLINE
+TAO_MngSeq_Var_T<T,T_elem> &
+TAO_MngSeq_Var_T<T,T_elem>::operator= (T * p)
+{
+ delete this->ptr_;
+ this->ptr_ = p;
+ return *this;
+}
+
+// Variable-size types only.
+template<typename T, typename T_elem>
+ACE_INLINE
+TAO_MngSeq_Var_T<T,T_elem>::operator T *& ()
+{
+ return this->ptr_;
+}
+
+template<typename T, typename T_elem>
+ACE_INLINE
+T_elem
+TAO_MngSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
// ****************************************************************
template<typename T, typename T_var, typename T_elem>