Fixed_Array_Argument_T.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Fixed_Array_Argument_T.inl 77036 2007-02-12 15:39:42Z elliott_c $
00004 
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 template<typename S_forany,
00008          class Insert_Policy>
00009 ACE_INLINE
00010 TAO::In_Fixed_Array_Argument_T<S_forany,Insert_Policy>::
00011 In_Fixed_Array_Argument_T (const typename S_forany::_slice_type * x)
00012   : x_ (
00013 #if (defined (__IBMCPP__) && (__IBMCPP__ <= 600))
00014         // @@ (OO) IMBCPP 6 can't handle the const_cast<> in the
00015         //         multi-dimensional array case so C-style
00016         //         "sledgehammer" cast instead (reinterpret_cast<>
00017         //         doesn't work either).  It's not clear if this is
00018         //         really the right thing to do but the code won't
00019         //         compile without it.
00020         (S_forany::_slice_type *) x
00021 #else
00022         const_cast<typename S_forany::_slice_type *> (x)
00023 #endif  /* IBMCPP <= 600 */
00024         )
00025 {
00026 }
00027 
00028 template<typename S_forany,
00029          class Insert_Policy>
00030 ACE_INLINE
00031 const typename S_forany::_slice_type *
00032 TAO::In_Fixed_Array_Argument_T<S_forany,Insert_Policy>::arg (void) const
00033 {
00034   return this->x_.in ();
00035 }
00036 
00037 template<typename S_forany,
00038          class Insert_Policy>
00039 ACE_INLINE
00040 TAO::In_Fixed_Array_Clonable_Argument_T<S_forany,Insert_Policy>::
00041 In_Fixed_Array_Clonable_Argument_T (const typename S_forany::_slice_type * x)
00042   : In_Fixed_Array_Argument_T<S_forany,Insert_Policy> (x),
00043     is_clone_ (false)
00044 {
00045 }
00046 
00047 
00048 // ===========================================================================
00049 
00050 template<typename S_forany,
00051          class Insert_Policy>
00052 ACE_INLINE
00053 TAO::Inout_Fixed_Array_Argument_T<S_forany,Insert_Policy>::
00054 Inout_Fixed_Array_Argument_T (typename S_forany::_slice_type *& x)
00055   : x_ (x)
00056 {}
00057 
00058 template<typename S_forany,
00059          class Insert_Policy>
00060 ACE_INLINE
00061 typename S_forany::_slice_type *
00062 TAO::Inout_Fixed_Array_Argument_T<S_forany,Insert_Policy>::arg (void)
00063 {
00064   return this->x_.inout ();
00065 }
00066 
00067 // ===========================================================================
00068 
00069 template<typename S_forany,
00070          class Insert_Policy>
00071 ACE_INLINE
00072 TAO::Out_Fixed_Array_Argument_T<
00073     S_forany,
00074     Insert_Policy
00075   >::Out_Fixed_Array_Argument_T (typename S_forany::_slice_type *&x)
00076   : x_ (x)
00077 {}
00078 
00079 template<typename S_forany,
00080          class Insert_Policy>
00081 ACE_INLINE
00082 typename S_forany::_slice_type *&
00083 TAO::Out_Fixed_Array_Argument_T<S_forany,Insert_Policy>::arg (void)
00084 {
00085   return this->x_.out ();
00086 }
00087 
00088 // ===========================================================================
00089 
00090 template<typename S_var,
00091          typename S_forany,
00092          class Insert_Policy>
00093 ACE_INLINE
00094 TAO::Ret_Fixed_Array_Argument_T<S_var,S_forany,Insert_Policy>::
00095 Ret_Fixed_Array_Argument_T (void)
00096 {}
00097 
00098 template<typename S_var,
00099          typename S_forany,
00100          class Insert_Policy>
00101 ACE_INLINE
00102 typename S_forany::_slice_type *&
00103 TAO::Ret_Fixed_Array_Argument_T<S_var,S_forany,Insert_Policy>::arg (void)
00104 {
00105   return this->x_._retn_arg ();
00106 }
00107 
00108 template<typename S_var,
00109          typename S_forany,
00110          class Insert_Policy>
00111 ACE_INLINE
00112 typename S_forany::_slice_type *
00113 TAO::Ret_Fixed_Array_Argument_T<S_var,S_forany,Insert_Policy>::excp (void)
00114 {
00115   return this->x_.ptr ();
00116 }
00117 
00118 template<typename S_var,
00119          typename S_forany,
00120          class Insert_Policy>
00121 ACE_INLINE
00122 typename S_forany::_slice_type *
00123 TAO::Ret_Fixed_Array_Argument_T<S_var,S_forany,Insert_Policy>::retn (void)
00124 {
00125   return this->x_._retn ();
00126 }
00127 
00128 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:37:51 2010 for TAO by  doxygen 1.4.7