Any.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Any.inl 73223 2006-06-22 06:59:12Z jwillemsen $
00004 
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 ACE_INLINE TAO::Any_Impl *
00008 CORBA::Any::impl (void) const
00009 {
00010   return this->impl_;
00011 }
00012 
00013 // *************************************************************
00014 // Inline operations for class CORBA::Any_var
00015 // *************************************************************
00016 
00017 ACE_INLINE
00018 CORBA::Any_var::Any_var (void)
00019   : ptr_ (0)
00020 {
00021 }
00022 
00023 ACE_INLINE
00024 CORBA::Any_var::Any_var (CORBA::Any *p)
00025   : ptr_ (p)
00026 {
00027 }
00028 
00029 ACE_INLINE
00030 CORBA::Any_var::~Any_var (void)
00031 {
00032   delete this->ptr_;
00033 }
00034 
00035 ACE_INLINE
00036 CORBA::Any_var::operator CORBA::Any *&()
00037 {
00038   return this->ptr_;
00039 }
00040 
00041 ACE_INLINE
00042 CORBA::Any_var::operator const CORBA::Any *() const
00043 {
00044   return this->ptr_;
00045 }
00046 
00047 ACE_INLINE CORBA::Any *
00048 CORBA::Any_var::operator-> (void)
00049 {
00050   return this->ptr_;
00051 }
00052 
00053 ACE_INLINE const CORBA::Any &
00054 CORBA::Any_var::in (void) const
00055 {
00056   return *this->ptr_;
00057 }
00058 
00059 ACE_INLINE CORBA::Any &
00060 CORBA::Any_var::inout (void)
00061 {
00062   return *this->ptr_;
00063 }
00064 
00065 ACE_INLINE CORBA::Any *&
00066 CORBA::Any_var::out (void)
00067 {
00068   delete this->ptr_;
00069   this->ptr_ = 0;
00070   return this->ptr_;
00071 }
00072 
00073 ACE_INLINE CORBA::Any *
00074 CORBA::Any_var::_retn (void)
00075 {
00076   CORBA::Any *temp = this->ptr_;
00077   this->ptr_ = 0;
00078   return temp;
00079 }
00080 
00081 ACE_INLINE CORBA::Any *
00082 CORBA::Any_var::ptr (void) const
00083 {
00084   return this->ptr_;
00085 }
00086 
00087 // *************************************************************
00088 // CORBA::Any_var insertion operators
00089 // *************************************************************
00090 
00091 ACE_INLINE void
00092 operator <<= (CORBA::Any_var &lhs, CORBA::Short rhs)
00093 {
00094   lhs.inout () <<= rhs;
00095 }
00096 
00097 ACE_INLINE void
00098 operator <<= (CORBA::Any_var &lhs, CORBA::UShort rhs)
00099 {
00100   lhs.inout () <<= rhs;
00101 }
00102 
00103 ACE_INLINE void
00104 operator <<= (CORBA::Any_var &lhs, CORBA::Long rhs)
00105 {
00106   lhs.inout () <<= rhs;
00107 }
00108 
00109 ACE_INLINE void
00110 operator <<= (CORBA::Any_var &lhs, CORBA::ULong rhs)
00111 {
00112   lhs.inout () <<= rhs;
00113 }
00114 
00115 ACE_INLINE void
00116 operator <<= (CORBA::Any_var &lhs, CORBA::LongLong rhs)
00117 {
00118   lhs.inout () <<= rhs;
00119 }
00120 
00121 ACE_INLINE void
00122 operator <<= (CORBA::Any_var &lhs, CORBA::ULongLong rhs)
00123 {
00124   lhs.inout () <<= rhs;
00125 }
00126 
00127 ACE_INLINE void
00128 operator <<= (CORBA::Any_var &lhs, CORBA::Float rhs)
00129 {
00130   lhs.inout () <<= rhs;
00131 }
00132 
00133 ACE_INLINE void
00134 operator <<= (CORBA::Any_var &lhs, CORBA::Double rhs)
00135 {
00136   lhs.inout () <<= rhs;
00137 }
00138 
00139 ACE_INLINE void
00140 operator <<= (CORBA::Any_var &lhs, const CORBA::Any& rhs)
00141 {
00142   lhs.inout () <<= rhs;
00143 }
00144 
00145 ACE_INLINE void
00146 operator <<= (CORBA::Any_var &lhs, const char* rhs)
00147 {
00148   lhs.inout () <<= rhs;
00149 }
00150 
00151 ACE_INLINE void
00152 operator <<= (CORBA::Any_var &lhs, CORBA::TypeCode_ptr rhs)
00153 {
00154   lhs.inout () <<= rhs;
00155 }
00156 
00157 ACE_INLINE void
00158 operator <<= (CORBA::Any_var &lhs, const CORBA::Object_ptr rhs)
00159 {
00160   lhs.inout () <<= rhs;
00161 }
00162 
00163 ACE_INLINE void
00164 operator <<= (CORBA::Any_var &lhs, ACE_OutputCDR::from_boolean rhs)
00165 {
00166   lhs.inout () <<= rhs;
00167 }
00168 
00169 ACE_INLINE void
00170 operator <<= (CORBA::Any_var &lhs, CORBA::Any::from_char rhs)
00171 {
00172   lhs.inout () <<= rhs;
00173 }
00174 
00175 ACE_INLINE void
00176 operator <<= (CORBA::Any_var &lhs, CORBA::Any::from_wchar rhs)
00177 {
00178   lhs.inout () <<= rhs;
00179 }
00180 
00181 ACE_INLINE void
00182 operator <<= (CORBA::Any_var &lhs, CORBA::Any::from_octet rhs)
00183 {
00184   lhs.inout () <<= rhs;
00185 }
00186 
00187 ACE_INLINE void
00188 operator <<= (CORBA::Any_var &lhs, CORBA::Any::from_string rhs)
00189 {
00190   lhs.inout () <<= rhs;
00191 }
00192 
00193 ACE_INLINE void
00194 operator <<= (CORBA::Any_var &lhs, CORBA::Any::from_wstring rhs)
00195 {
00196   lhs.inout () <<= rhs;
00197 }
00198 
00199 // *************************************************************
00200 // CORBA::Any_var extraction operators
00201 // *************************************************************
00202 
00203 ACE_INLINE CORBA::Boolean
00204 operator >>= (const CORBA::Any_var &lhs, CORBA::Short &rhs)
00205 {
00206   return lhs.in () >>= rhs;
00207 }
00208 
00209 ACE_INLINE CORBA::Boolean
00210 operator >>= (const CORBA::Any_var &lhs, CORBA::UShort &rhs)
00211 {
00212   return lhs.in () >>= rhs;
00213 }
00214 
00215 ACE_INLINE CORBA::Boolean
00216 operator >>= (const CORBA::Any_var &lhs, CORBA::Long &rhs)
00217 {
00218   return lhs.in () >>= rhs;
00219 }
00220 
00221 ACE_INLINE CORBA::Boolean
00222 operator >>= (const CORBA::Any_var &lhs, CORBA::ULong &rhs)
00223 {
00224   return lhs.in () >>= rhs;
00225 }
00226 
00227 ACE_INLINE CORBA::Boolean
00228 operator >>= (const CORBA::Any_var &lhs, CORBA::LongLong &rhs)
00229 {
00230   return lhs.in () >>= rhs;
00231 }
00232 
00233 ACE_INLINE CORBA::Boolean
00234 operator >>= (const CORBA::Any_var &lhs, CORBA::ULongLong &rhs)
00235 {
00236   return lhs.in () >>= rhs;
00237 }
00238 
00239 ACE_INLINE CORBA::Boolean
00240 operator >>= (const CORBA::Any_var &lhs, CORBA::Float &rhs)
00241 {
00242   return lhs.in () >>= rhs;
00243 }
00244 
00245 ACE_INLINE CORBA::Boolean
00246 operator >>= (const CORBA::Any_var &lhs, CORBA::Double &rhs)
00247 {
00248   return lhs.in () >>= rhs;
00249 }
00250 
00251 ACE_INLINE CORBA::Boolean
00252 operator >>= (const CORBA::Any_var &lhs, const CORBA::Any *&rhs)
00253 {
00254   return lhs.in () >>= rhs;
00255 }
00256 
00257 ACE_INLINE CORBA::Boolean
00258 operator >>= (const CORBA::Any_var &lhs, CORBA::TypeCode_ptr &rhs)
00259 {
00260   return lhs.in () >>= rhs;
00261 }
00262 
00263 ACE_INLINE CORBA::Boolean
00264 operator >>= (const CORBA::Any_var &lhs, const char *&rhs)
00265 {
00266   return lhs.in () >>= rhs;
00267 }
00268 
00269 ACE_INLINE CORBA::Boolean
00270 operator >>= (const CORBA::Any_var &lhs, const CORBA::WChar *&rhs)
00271 {
00272   return lhs.in () >>= rhs;
00273 }
00274 
00275 ACE_INLINE CORBA::Boolean
00276 operator >>= (const CORBA::Any_var &lhs, CORBA::Any::to_boolean rhs)
00277 {
00278   return lhs.in () >>= rhs;
00279 }
00280 
00281 ACE_INLINE CORBA::Boolean
00282 operator >>= (const CORBA::Any_var &lhs, CORBA::Any::to_octet rhs)
00283 {
00284   return lhs.in () >>= rhs;
00285 }
00286 
00287 ACE_INLINE CORBA::Boolean
00288 operator >>= (const CORBA::Any_var &lhs, CORBA::Any::to_char rhs)
00289 {
00290   return lhs.in () >>= rhs;
00291 }
00292 
00293 ACE_INLINE CORBA::Boolean
00294 operator >>= (const CORBA::Any_var &lhs, CORBA::Any::to_wchar rhs)
00295 {
00296   return lhs.in () >>= rhs;
00297 }
00298 
00299 ACE_INLINE CORBA::Boolean
00300 operator >>= (const CORBA::Any_var &lhs, CORBA::Any::to_string rhs)
00301 {
00302   return lhs.in () >>= rhs;
00303 }
00304 
00305 ACE_INLINE CORBA::Boolean
00306 operator >>= (const CORBA::Any_var &lhs, CORBA::Any::to_wstring rhs)
00307 {
00308   return lhs.in () >>= rhs;
00309 }
00310 
00311 ACE_INLINE CORBA::Boolean
00312 operator >>= (const CORBA::Any_var &lhs, CORBA::Any::to_object rhs)
00313 {
00314   return lhs.in () >>= rhs;
00315 }
00316 
00317 // *************************************************************
00318 // Inline operations for class CORBA::Any_out
00319 // *************************************************************
00320 
00321 ACE_INLINE
00322 CORBA::Any_out::Any_out (CORBA::Any *&s)
00323   : ptr_ (s)
00324 {
00325   this->ptr_ = 0;
00326 }
00327 
00328 ACE_INLINE
00329 CORBA::Any_out::Any_out (CORBA::Any_var &s)
00330   : ptr_ (s.out ())
00331 {
00332 }
00333 
00334 ACE_INLINE
00335 CORBA::Any_out::Any_out (const CORBA::Any_out &s)
00336   : ptr_ (s.ptr_)
00337 {
00338 }
00339 
00340 ACE_INLINE CORBA::Any_out &
00341 CORBA::Any_out::operator= (const CORBA::Any_out &s)
00342 {
00343   this->ptr_ = s.ptr_;
00344   return *this;
00345 }
00346 
00347 ACE_INLINE CORBA::Any_out &
00348 CORBA::Any_out::operator= (CORBA::Any *s)
00349 {
00350   this->ptr_ = s;
00351   return *this;
00352 }
00353 
00354 ACE_INLINE
00355 CORBA::Any_out::operator CORBA::Any *&()
00356 {
00357   return this->ptr_;
00358 }
00359 
00360 ACE_INLINE CORBA::Any *&
00361 CORBA::Any_out::ptr (void)
00362 {
00363   return this->ptr_;
00364 }
00365 
00366 ACE_INLINE CORBA::Any *
00367 CORBA::Any_out::operator-> (void)
00368 {
00369   return this->ptr_;
00370 }
00371 
00372 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Sun Jan 27 13:21:06 2008 for TAO_AnyTypeCode by doxygen 1.3.6