Go to the documentation of this file.00001
00002
00003 #ifndef TAO_VECTOR_ARGUMENT_T_CPP
00004 #define TAO_VECTOR_ARGUMENT_T_CPP
00005
00006 #include "tao/Vector_Argument_T.h"
00007
00008 #if !defined (__ACE_INLINE__)
00009 #include "tao/Vector_Argument_T.inl"
00010 #endif
00011
00012 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00013
00014 template<typename S,
00015 template <typename> class Insert_Policy>
00016 CORBA::Boolean
00017 TAO::In_Vector_Argument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
00018 {
00019 return cdr << this->x_;
00020 }
00021
00022 #if TAO_HAS_INTERCEPTORS == 1
00023
00024 template<typename S,
00025 template <typename> class Insert_Policy>
00026 void
00027 TAO::In_Vector_Argument_T<S,Insert_Policy>::interceptor_value (
00028 CORBA::Any *any
00029 ) const
00030 {
00031 Insert_Policy<S>::any_insert (any, this->x_);
00032 }
00033
00034 #endif
00035
00036 template<typename S,
00037 template <typename> class Insert_Policy>
00038 TAO::In_Vector_Clonable_Argument_T<S,Insert_Policy>::~In_Vector_Clonable_Argument_T (void)
00039 {
00040 if (this->is_clone_)
00041 {
00042 S & tmp = const_cast<S &> (this->x_);
00043 delete tmp;
00044 }
00045 }
00046
00047 template<typename S,
00048 template <typename> class Insert_Policy>
00049 TAO::Argument*
00050 TAO::In_Vector_Clonable_Argument_T<S,Insert_Policy>::clone (void)
00051 {
00052 S* clone_x = new S (this->x_);
00053 In_Vector_Clonable_Argument_T<S,Insert_Policy>* clone_arg
00054 = new In_Vector_Clonable_Argument_T<S,Insert_Policy> (*clone_x);
00055 clone_arg->is_clone_ = true;
00056 return clone_arg;
00057 }
00058
00059
00060
00061 template<typename S,
00062 template <typename> class Insert_Policy>
00063 CORBA::Boolean
00064 TAO::Inout_Vector_Argument_T<S,Insert_Policy>::marshal (
00065 TAO_OutputCDR &cdr
00066 )
00067 {
00068 return cdr << this->x_;
00069 }
00070
00071 template<typename S,
00072 template <typename> class Insert_Policy>
00073 CORBA::Boolean
00074 TAO::Inout_Vector_Argument_T<S,Insert_Policy>::demarshal (
00075 TAO_InputCDR & cdr
00076 )
00077 {
00078 return cdr >> this->x_;
00079 }
00080
00081 #if TAO_HAS_INTERCEPTORS == 1
00082
00083 template<typename S,
00084 template <typename> class Insert_Policy>
00085 void
00086 TAO::Inout_Vector_Argument_T<S,Insert_Policy>::interceptor_value (
00087 CORBA::Any *any
00088 ) const
00089 {
00090 Insert_Policy<S>::any_insert (any, this->x_);
00091 }
00092
00093 #endif
00094
00095
00096
00097 template<typename S,
00098 template <typename> class Insert_Policy>
00099 CORBA::Boolean
00100 TAO::Out_Vector_Argument_T<S,Insert_Policy>::demarshal (
00101 TAO_InputCDR & cdr
00102 )
00103 {
00104 return cdr >> this->x_;
00105 }
00106
00107 #if TAO_HAS_INTERCEPTORS == 1
00108
00109 template<typename S,
00110 template <typename> class Insert_Policy>
00111 void
00112 TAO::Out_Vector_Argument_T<S,Insert_Policy>::interceptor_value (
00113 CORBA::Any *any
00114 ) const
00115 {
00116 Insert_Policy<S>::any_insert (any, this->x_);
00117 }
00118
00119 #endif
00120
00121
00122
00123 template<typename S,
00124 template <typename> class Insert_Policy>
00125 CORBA::Boolean
00126 TAO::Ret_Vector_Argument_T<S,Insert_Policy>::demarshal (
00127 TAO_InputCDR & cdr
00128 )
00129 {
00130 return cdr >> this->x_;
00131 }
00132
00133 #if TAO_HAS_INTERCEPTORS == 1
00134
00135 template<typename S,
00136 template <typename> class Insert_Policy>
00137 void
00138 TAO::Ret_Vector_Argument_T<S,Insert_Policy>::interceptor_value (
00139 CORBA::Any *any
00140 ) const
00141 {
00142 Insert_Policy<S>::any_insert (any, this->x_);
00143 }
00144
00145 #endif
00146
00147 TAO_END_VERSIONED_NAMESPACE_DECL
00148
00149 #endif