Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Any.i

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

Generated on Mon Jun 16 13:48:00 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002