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

CONV_FRAMEC.i

Go to the documentation of this file.
00001 // $Id: CONV_FRAMEC.i,v 1.1.1.2 2001/12/04 14:34:41 chad Exp $
00002 
00003 // *************************************************************
00004 // Inline operations for class CONV_FRAME::CodeSetComponent_var
00005 // *************************************************************
00006 
00007 ACE_INLINE
00008 CONV_FRAME::CodeSetComponent_var::CodeSetComponent_var (void) // default constructor
00009   : ptr_ (0)
00010 {}
00011 
00012 ACE_INLINE
00013 CONV_FRAME::CodeSetComponent_var::CodeSetComponent_var (CONV_FRAME::CodeSetComponent *p)
00014   : ptr_ (p)
00015 {}
00016 
00017 ACE_INLINE
00018 CONV_FRAME::CodeSetComponent_var::CodeSetComponent_var (const CONV_FRAME::CodeSetComponent_var &p) // copy constructor
00019 {
00020   if (p.ptr_)
00021     ACE_NEW (this->ptr_, CONV_FRAME::CodeSetComponent(*p.ptr_));
00022   else
00023     this->ptr_ = 0;
00024 }
00025 
00026 ACE_INLINE
00027 CONV_FRAME::CodeSetComponent_var::~CodeSetComponent_var (void) // destructor
00028 {
00029   delete this->ptr_;
00030 }
00031 
00032 ACE_INLINE CONV_FRAME::CodeSetComponent_var &
00033 CONV_FRAME::CodeSetComponent_var::operator= (CONV_FRAME::CodeSetComponent *p)
00034 {
00035   delete this->ptr_;
00036   this->ptr_ = p;
00037   return *this;
00038 }
00039 
00040 ACE_INLINE CONV_FRAME::CodeSetComponent_var &
00041 CONV_FRAME::CodeSetComponent_var::operator= (const CONV_FRAME::CodeSetComponent_var &p)
00042 {
00043   if (this != &p)
00044     {
00045       if (p.ptr_ == 0)
00046         {
00047           delete this->ptr_;
00048           this->ptr_ = 0;
00049         }
00050       else
00051         {
00052           CONV_FRAME::CodeSetComponent *deep_copy = 
00053                 new CONV_FRAME::CodeSetComponent (*p.ptr_);
00054           
00055           if (deep_copy != 0)
00056             {
00057               CONV_FRAME::CodeSetComponent *tmp = deep_copy;
00058               deep_copy = this->ptr_;
00059               this->ptr_ = tmp;
00060               delete deep_copy;
00061             }
00062         }
00063     }
00064   
00065   return *this;
00066 }
00067 
00068 ACE_INLINE const CONV_FRAME::CodeSetComponent *
00069 CONV_FRAME::CodeSetComponent_var::operator-> (void) const
00070 {
00071   return this->ptr_;
00072 }
00073 
00074 ACE_INLINE CONV_FRAME::CodeSetComponent *
00075 CONV_FRAME::CodeSetComponent_var::operator-> (void)
00076 {
00077   return this->ptr_;
00078 }
00079 
00080 ACE_INLINE
00081 CONV_FRAME::CodeSetComponent_var::operator const CONV_FRAME::CodeSetComponent &() const // cast
00082 {
00083   return *this->ptr_;
00084 }
00085 
00086 ACE_INLINE
00087 CONV_FRAME::CodeSetComponent_var::operator CONV_FRAME::CodeSetComponent &() // cast
00088 {
00089   return *this->ptr_;
00090 }
00091 
00092 ACE_INLINE
00093 CONV_FRAME::CodeSetComponent_var::operator CONV_FRAME::CodeSetComponent &() const// cast
00094 {
00095   return *this->ptr_;
00096 }
00097 
00098 ACE_INLINE const CONV_FRAME::CodeSetComponent &
00099 CONV_FRAME::CodeSetComponent_var::in (void) const
00100 {
00101   return *this->ptr_;
00102 }
00103 
00104 ACE_INLINE CONV_FRAME::CodeSetComponent &
00105 CONV_FRAME::CodeSetComponent_var::inout (void)
00106 {
00107   return *this->ptr_;
00108 }
00109 
00110 // mapping for variable size
00111 ACE_INLINE CONV_FRAME::CodeSetComponent *&
00112 CONV_FRAME::CodeSetComponent_var::out (void)
00113 {
00114   delete this->ptr_;
00115   this->ptr_ = 0;
00116   return this->ptr_;
00117 }
00118 
00119 ACE_INLINE CONV_FRAME::CodeSetComponent *
00120 CONV_FRAME::CodeSetComponent_var::_retn (void)
00121 {
00122   CONV_FRAME::CodeSetComponent *tmp = this->ptr_;
00123   this->ptr_ = 0;
00124   return tmp;
00125 }
00126 
00127 ACE_INLINE CONV_FRAME::CodeSetComponent *
00128 CONV_FRAME::CodeSetComponent_var::ptr (void) const
00129 {
00130   return this->ptr_;
00131 }
00132 
00133 // *************************************************************
00134 // Inline operations for class CONV_FRAME::CodeSetComponent_out
00135 // *************************************************************
00136 
00137 ACE_INLINE
00138 CONV_FRAME::CodeSetComponent_out::CodeSetComponent_out (CONV_FRAME::CodeSetComponent *&p)
00139   : ptr_ (p)
00140 {
00141   this->ptr_ = 0;
00142 }
00143 
00144 ACE_INLINE
00145 CONV_FRAME::CodeSetComponent_out::CodeSetComponent_out (CONV_FRAME::CodeSetComponent_var &p) // constructor from _var
00146   : ptr_ (p.out ())
00147 {
00148   delete this->ptr_;
00149   this->ptr_ = 0;
00150 }
00151 
00152 ACE_INLINE
00153 CONV_FRAME::CodeSetComponent_out::CodeSetComponent_out (const CONV_FRAME::CodeSetComponent_out &p) // copy constructor
00154   : ptr_ (ACE_const_cast (CONV_FRAME::CodeSetComponent_out&,p).ptr_)
00155 {}
00156 
00157 ACE_INLINE CONV_FRAME::CodeSetComponent_out &
00158 CONV_FRAME::CodeSetComponent_out::operator= (const CONV_FRAME::CodeSetComponent_out &p)
00159 {
00160   this->ptr_ = ACE_const_cast (CONV_FRAME::CodeSetComponent_out&,p).ptr_;
00161   return *this;
00162 }
00163 
00164 ACE_INLINE CONV_FRAME::CodeSetComponent_out &
00165 CONV_FRAME::CodeSetComponent_out::operator= (CONV_FRAME::CodeSetComponent *p)
00166 {
00167   this->ptr_ = p;
00168   return *this;
00169 }
00170 
00171 ACE_INLINE
00172 CONV_FRAME::CodeSetComponent_out::operator CONV_FRAME::CodeSetComponent *&() // cast
00173 {
00174   return this->ptr_;
00175 }
00176 
00177 ACE_INLINE CONV_FRAME::CodeSetComponent *&
00178 CONV_FRAME::CodeSetComponent_out::ptr (void) // ptr
00179 {
00180   return this->ptr_;
00181 }
00182 
00183 ACE_INLINE CONV_FRAME::CodeSetComponent *
00184 CONV_FRAME::CodeSetComponent_out::operator-> (void)
00185 {
00186   return this->ptr_;
00187 }
00188 
00189 
00190 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00191 
00192 #if !defined (__TAO_UNBOUNDED_SEQUENCE_CONV_FRAME_CODESETCOMPONENT__TAO_SEQ_CODESETID_CI_)
00193 #define __TAO_UNBOUNDED_SEQUENCE_CONV_FRAME_CODESETCOMPONENT__TAO_SEQ_CODESETID_CI_
00194 
00195   // = Static operations.
00196   ACE_INLINE CORBA::ULong *
00197   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::allocbuf (CORBA::ULong size)
00198   // Allocate storage for the sequence.
00199   {
00200     CORBA::ULong *retval = 0;
00201     ACE_NEW_RETURN (retval, CORBA::ULong[size], 0);
00202     return retval;
00203   }
00204 
00205   ACE_INLINE void CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::freebuf (CORBA::ULong *buffer)
00206   // Free the sequence.
00207   {
00208     delete [] buffer;
00209   }
00210 
00211   ACE_INLINE
00212   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId (void) // Default constructor.
00213   {
00214   }
00215 
00216   ACE_INLINE
00217   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId (CORBA::ULong maximum) // Constructor using a maximum length value.
00218     : TAO_Unbounded_Base_Sequence (maximum, CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::allocbuf (maximum))
00219   {
00220   }
00221 
00222   ACE_INLINE
00223   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId (CORBA::ULong maximum,
00224     CORBA::ULong length,
00225     CORBA::ULong *data,
00226     CORBA::Boolean release)
00227   : TAO_Unbounded_Base_Sequence (maximum, length, data, release)
00228   {
00229   }
00230 
00231   ACE_INLINE
00232   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId (const CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId &rhs)
00233   // Copy constructor.
00234     : TAO_Unbounded_Base_Sequence (rhs)
00235   {
00236     CORBA::ULong *tmp1 = CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::allocbuf (this->maximum_);
00237     CORBA::ULong * const tmp2 = ACE_reinterpret_cast (CORBA::ULong * ACE_CAST_CONST, rhs.buffer_);
00238 
00239     for (CORBA::ULong i = 0; i < this->length_; ++i)
00240       tmp1[i] = tmp2[i];
00241 
00242     this->buffer_ = tmp1;
00243   }
00244 
00245   ACE_INLINE CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId &
00246   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::operator= (const CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId &rhs)
00247   // Assignment operator.
00248   {
00249     if (this == &rhs)
00250       return *this;
00251 
00252     if (this->release_)
00253     {
00254       if (this->maximum_ < rhs.maximum_)
00255       {
00256         // free the old buffer
00257         CORBA::ULong *tmp = ACE_reinterpret_cast (CORBA::ULong *, this->buffer_);
00258         CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::freebuf (tmp);
00259         this->buffer_ = CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::allocbuf (rhs.maximum_);
00260       }
00261     }
00262     else
00263       this->buffer_ = CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::allocbuf (rhs.maximum_);
00264 
00265     TAO_Unbounded_Base_Sequence::operator= (rhs);
00266 
00267     CORBA::ULong *tmp1 = ACE_reinterpret_cast (CORBA::ULong *, this->buffer_);
00268     CORBA::ULong * const tmp2 = ACE_reinterpret_cast (CORBA::ULong * ACE_CAST_CONST, rhs.buffer_);
00269 
00270     for (CORBA::ULong i = 0; i < this->length_; ++i)
00271       tmp1[i] = tmp2[i];
00272 
00273     return *this;
00274   }
00275 
00276   // = Accessors.
00277   ACE_INLINE CORBA::ULong &
00278   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::operator[] (CORBA::ULong i)
00279   // operator []
00280   {
00281     ACE_ASSERT (i < this->maximum_);
00282     CORBA::ULong* tmp = ACE_reinterpret_cast(CORBA::ULong*,this->buffer_);
00283     return tmp[i];
00284   }
00285 
00286   ACE_INLINE const CORBA::ULong &
00287   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::operator[] (CORBA::ULong i) const
00288   // operator []
00289   {
00290     ACE_ASSERT (i < this->maximum_);
00291     CORBA::ULong * const tmp = ACE_reinterpret_cast (CORBA::ULong* ACE_CAST_CONST, this->buffer_);
00292     return tmp[i];
00293   }
00294 
00295   // Implement the TAO_Base_Sequence methods (see Sequence.h)
00296 
00297   ACE_INLINE CORBA::ULong *
00298   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::get_buffer (CORBA::Boolean orphan)
00299   {
00300     CORBA::ULong *result = 0;
00301     if (orphan == 0)
00302     {
00303       // We retain ownership.
00304       if (this->buffer_ == 0)
00305       {
00306         result = CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::allocbuf (this->length_);
00307         this->buffer_ = result;
00308         this->release_ = 1;
00309       }
00310       else
00311       {
00312         result = ACE_reinterpret_cast (CORBA::ULong*, this->buffer_);
00313       }
00314     }
00315     else // if (orphan == 1)
00316     {
00317       if (this->release_ != 0)
00318       {
00319         // We set the state back to default and relinquish
00320         // ownership.
00321         result = ACE_reinterpret_cast(CORBA::ULong*,this->buffer_);
00322         this->maximum_ = 0;
00323         this->length_ = 0;
00324         this->buffer_ = 0;
00325         this->release_ = 0;
00326       }
00327     }
00328     return result;
00329   }
00330 
00331   ACE_INLINE const CORBA::ULong *
00332   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::get_buffer (void) const
00333   {
00334     return ACE_reinterpret_cast(const CORBA::ULong * ACE_CAST_CONST, this->buffer_);
00335   }
00336 
00337   ACE_INLINE void
00338   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::replace (CORBA::ULong max,
00339   CORBA::ULong length,
00340   CORBA::ULong *data,
00341   CORBA::Boolean release)
00342   {
00343     this->maximum_ = max;
00344     this->length_ = length;
00345     if (this->buffer_ && this->release_ == 1)
00346     {
00347       CORBA::ULong *tmp = ACE_reinterpret_cast(CORBA::ULong*,this->buffer_);
00348       CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::freebuf (tmp);
00349     }
00350     this->buffer_ = data;
00351     this->release_ = release;
00352   }
00353 
00354 #endif /* end #if !defined */
00355 
00356 
00357 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */
00358 
00359 #if !defined (_CONV_FRAME_CODESETCOMPONENT__TAO_SEQ_CODESETID_CI_)
00360 #define _CONV_FRAME_CODESETCOMPONENT__TAO_SEQ_CODESETID_CI_
00361 
00362 // *************************************************************
00363 // Inline operations for class CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var
00364 // *************************************************************
00365 
00366 ACE_INLINE
00367 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::_tao_seq_CodeSetId_var (void) // default constructor
00368   : ptr_ (0)
00369 {}
00370 
00371 ACE_INLINE
00372 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::_tao_seq_CodeSetId_var (CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *p)
00373   : ptr_ (p)
00374 {}
00375 
00376 ACE_INLINE
00377 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::_tao_seq_CodeSetId_var (const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var &p) // copy constructor
00378 {
00379   if (p.ptr_)
00380     ACE_NEW (this->ptr_, CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId(*p.ptr_));
00381   else
00382     this->ptr_ = 0;
00383 }
00384 
00385 ACE_INLINE
00386 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::~_tao_seq_CodeSetId_var (void) // destructor
00387 {
00388   delete this->ptr_;
00389 }
00390 
00391 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var &
00392 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::operator= (CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *p)
00393 {
00394   delete this->ptr_;
00395   this->ptr_ = p;
00396   return *this;
00397 }
00398 
00399 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var &
00400 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::operator= (const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var &p) // deep copy
00401 {
00402   if (this != &p)
00403     {
00404       if (p.ptr_ == 0)
00405         {
00406           delete this->ptr_;
00407           this->ptr_ = 0;
00408         }
00409       else
00410         {
00411           CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *deep_copy = 
00412             new CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId (*p.ptr_);
00413           
00414           if (deep_copy != 0)
00415             {
00416               CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *tmp = 
00417                 deep_copy;
00418               deep_copy = this->ptr_;
00419               this->ptr_ = tmp;
00420               delete deep_copy;
00421             }
00422         }
00423     }
00424   
00425   return *this;
00426 }
00427 
00428 ACE_INLINE const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *
00429 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::operator-> (void) const
00430 {
00431   return this->ptr_;
00432 }
00433 
00434 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *
00435 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::operator-> (void)
00436 {
00437   return this->ptr_;
00438 }
00439 
00440 ACE_INLINE
00441 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::operator const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &() const // cast
00442 {
00443   return *this->ptr_;
00444 }
00445 
00446 ACE_INLINE
00447 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::operator CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &() // cast
00448 {
00449   return *this->ptr_;
00450 }
00451 
00452 ACE_INLINE
00453 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::operator CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &() const// cast
00454 {
00455   return *this->ptr_;
00456 }
00457 
00458 ACE_INLINE CONV_FRAME::CodeSetId &
00459 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::operator[] (CORBA::ULong index)
00460 {
00461   return this->ptr_->operator[] (index);
00462 }
00463 
00464 ACE_INLINE const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &
00465 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::in (void) const
00466 {
00467   return *this->ptr_;
00468 }
00469 
00470 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &
00471 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::inout (void)
00472 {
00473   return *this->ptr_;
00474 }
00475 
00476 // mapping for variable size
00477 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *&
00478 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::out (void)
00479 {
00480   delete this->ptr_;
00481   this->ptr_ = 0;
00482   return this->ptr_;
00483 }
00484 
00485 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *
00486 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::_retn (void)
00487 {
00488   CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *tmp = this->ptr_;
00489   this->ptr_ = 0;
00490   return tmp;
00491 }
00492 
00493 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *
00494 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var::ptr (void) const
00495 {
00496   return this->ptr_;
00497 }
00498 
00499 // *************************************************************
00500 // Inline operations for class CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out
00501 // *************************************************************
00502 
00503 ACE_INLINE
00504 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::_tao_seq_CodeSetId_out (CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *&p)
00505   : ptr_ (p)
00506 {
00507   this->ptr_ = 0;
00508 }
00509 
00510 ACE_INLINE
00511 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::_tao_seq_CodeSetId_out (CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_var &p) // constructor from _var
00512   : ptr_ (p.out ())
00513 {
00514   delete this->ptr_;
00515   this->ptr_ = 0;
00516 }
00517 
00518 ACE_INLINE
00519 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::_tao_seq_CodeSetId_out (const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out &p) // copy constructor
00520   : ptr_ (ACE_const_cast (CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out&,p).ptr_)
00521 {}
00522 
00523 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out &
00524 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::operator= (const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out &p)
00525 {
00526   this->ptr_ = ACE_const_cast (CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out&,p).ptr_;
00527   return *this;
00528 }
00529 
00530 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out &
00531 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::operator= (CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *p)
00532 {
00533   this->ptr_ = p;
00534   return *this;
00535 }
00536 
00537 ACE_INLINE
00538 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::operator CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *&() // cast
00539 {
00540   return this->ptr_;
00541 }
00542 
00543 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *&
00544 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::ptr (void) // ptr
00545 {
00546   return this->ptr_;
00547 }
00548 
00549 ACE_INLINE CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId *
00550 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::operator-> (void)
00551 {
00552   return this->ptr_;
00553 }
00554 
00555 ACE_INLINE CONV_FRAME::CodeSetId &
00556 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId_out::operator[] (CORBA::ULong index)
00557 {
00558   return this->ptr_->operator[] (index);
00559 }
00560 
00561 
00562 #endif /* end #if !defined */
00563 
00564 // *************************************************************
00565 // Inline operations for class CONV_FRAME::CodeSetComponentInfo_var
00566 // *************************************************************
00567 
00568 ACE_INLINE
00569 CONV_FRAME::CodeSetComponentInfo_var::CodeSetComponentInfo_var (void) // default constructor
00570   : ptr_ (0)
00571 {}
00572 
00573 ACE_INLINE
00574 CONV_FRAME::CodeSetComponentInfo_var::CodeSetComponentInfo_var (CONV_FRAME::CodeSetComponentInfo *p)
00575   : ptr_ (p)
00576 {}
00577 
00578 ACE_INLINE
00579 CONV_FRAME::CodeSetComponentInfo_var::CodeSetComponentInfo_var (const CONV_FRAME::CodeSetComponentInfo_var &p) // copy constructor
00580 {
00581   if (p.ptr_)
00582     ACE_NEW (this->ptr_, CONV_FRAME::CodeSetComponentInfo(*p.ptr_));
00583   else
00584     this->ptr_ = 0;
00585 }
00586 
00587 ACE_INLINE
00588 CONV_FRAME::CodeSetComponentInfo_var::~CodeSetComponentInfo_var (void) // destructor
00589 {
00590   delete this->ptr_;
00591 }
00592 
00593 ACE_INLINE CONV_FRAME::CodeSetComponentInfo_var &
00594 CONV_FRAME::CodeSetComponentInfo_var::operator= (CONV_FRAME::CodeSetComponentInfo *p)
00595 {
00596   delete this->ptr_;
00597   this->ptr_ = p;
00598   return *this;
00599 }
00600 
00601 ACE_INLINE CONV_FRAME::CodeSetComponentInfo_var &
00602 CONV_FRAME::CodeSetComponentInfo_var::operator= (const CONV_FRAME::CodeSetComponentInfo_var &p)
00603 {
00604   if (this != &p)
00605     {
00606       if (p.ptr_ == 0)
00607         {
00608           delete this->ptr_;
00609           this->ptr_ = 0;
00610         }
00611       else
00612         {
00613           CONV_FRAME::CodeSetComponentInfo *deep_copy = 
00614             new CONV_FRAME::CodeSetComponentInfo (*p.ptr_);
00615           
00616           if (deep_copy != 0)
00617             {
00618               CONV_FRAME::CodeSetComponentInfo *tmp = deep_copy;
00619               deep_copy = this->ptr_;
00620               this->ptr_ = tmp;
00621               delete deep_copy;
00622             }
00623         }
00624     }
00625   
00626   return *this;
00627 }
00628 
00629 ACE_INLINE const CONV_FRAME::CodeSetComponentInfo *
00630 CONV_FRAME::CodeSetComponentInfo_var::operator-> (void) const
00631 {
00632   return this->ptr_;
00633 }
00634 
00635 ACE_INLINE CONV_FRAME::CodeSetComponentInfo *
00636 CONV_FRAME::CodeSetComponentInfo_var::operator-> (void)
00637 {
00638   return this->ptr_;
00639 }
00640 
00641 ACE_INLINE
00642 CONV_FRAME::CodeSetComponentInfo_var::operator const CONV_FRAME::CodeSetComponentInfo &() const // cast
00643 {
00644   return *this->ptr_;
00645 }
00646 
00647 ACE_INLINE
00648 CONV_FRAME::CodeSetComponentInfo_var::operator CONV_FRAME::CodeSetComponentInfo &() // cast
00649 {
00650   return *this->ptr_;
00651 }
00652 
00653 ACE_INLINE
00654 CONV_FRAME::CodeSetComponentInfo_var::operator CONV_FRAME::CodeSetComponentInfo &() const// cast
00655 {
00656   return *this->ptr_;
00657 }
00658 
00659 ACE_INLINE const CONV_FRAME::CodeSetComponentInfo &
00660 CONV_FRAME::CodeSetComponentInfo_var::in (void) const
00661 {
00662   return *this->ptr_;
00663 }
00664 
00665 ACE_INLINE CONV_FRAME::CodeSetComponentInfo &
00666 CONV_FRAME::CodeSetComponentInfo_var::inout (void)
00667 {
00668   return *this->ptr_;
00669 }
00670 
00671 // mapping for variable size
00672 ACE_INLINE CONV_FRAME::CodeSetComponentInfo *&
00673 CONV_FRAME::CodeSetComponentInfo_var::out (void)
00674 {
00675   delete this->ptr_;
00676   this->ptr_ = 0;
00677   return this->ptr_;
00678 }
00679 
00680 ACE_INLINE CONV_FRAME::CodeSetComponentInfo *
00681 CONV_FRAME::CodeSetComponentInfo_var::_retn (void)
00682 {
00683   CONV_FRAME::CodeSetComponentInfo *tmp = this->ptr_;
00684   this->ptr_ = 0;
00685   return tmp;
00686 }
00687 
00688 ACE_INLINE CONV_FRAME::CodeSetComponentInfo *
00689 CONV_FRAME::CodeSetComponentInfo_var::ptr (void) const
00690 {
00691   return this->ptr_;
00692 }
00693 
00694 // *************************************************************
00695 // Inline operations for class CONV_FRAME::CodeSetComponentInfo_out
00696 // *************************************************************
00697 
00698 ACE_INLINE
00699 CONV_FRAME::CodeSetComponentInfo_out::CodeSetComponentInfo_out (CONV_FRAME::CodeSetComponentInfo *&p)
00700   : ptr_ (p)
00701 {
00702   this->ptr_ = 0;
00703 }
00704 
00705 ACE_INLINE
00706 CONV_FRAME::CodeSetComponentInfo_out::CodeSetComponentInfo_out (CONV_FRAME::CodeSetComponentInfo_var &p) // constructor from _var
00707   : ptr_ (p.out ())
00708 {
00709   delete this->ptr_;
00710   this->ptr_ = 0;
00711 }
00712 
00713 ACE_INLINE
00714 CONV_FRAME::CodeSetComponentInfo_out::CodeSetComponentInfo_out (const CONV_FRAME::CodeSetComponentInfo_out &p) // copy constructor
00715   : ptr_ (ACE_const_cast (CONV_FRAME::CodeSetComponentInfo_out&,p).ptr_)
00716 {}
00717 
00718 ACE_INLINE CONV_FRAME::CodeSetComponentInfo_out &
00719 CONV_FRAME::CodeSetComponentInfo_out::operator= (const CONV_FRAME::CodeSetComponentInfo_out &p)
00720 {
00721   this->ptr_ = ACE_const_cast (CONV_FRAME::CodeSetComponentInfo_out&,p).ptr_;
00722   return *this;
00723 }
00724 
00725 ACE_INLINE CONV_FRAME::CodeSetComponentInfo_out &
00726 CONV_FRAME::CodeSetComponentInfo_out::operator= (CONV_FRAME::CodeSetComponentInfo *p)
00727 {
00728   this->ptr_ = p;
00729   return *this;
00730 }
00731 
00732 ACE_INLINE
00733 CONV_FRAME::CodeSetComponentInfo_out::operator CONV_FRAME::CodeSetComponentInfo *&() // cast
00734 {
00735   return this->ptr_;
00736 }
00737 
00738 ACE_INLINE CONV_FRAME::CodeSetComponentInfo *&
00739 CONV_FRAME::CodeSetComponentInfo_out::ptr (void) // ptr
00740 {
00741   return this->ptr_;
00742 }
00743 
00744 ACE_INLINE CONV_FRAME::CodeSetComponentInfo *
00745 CONV_FRAME::CodeSetComponentInfo_out::operator-> (void)
00746 {
00747   return this->ptr_;
00748 }
00749 
00750 // *************************************************************
00751 // Inline operations for class CONV_FRAME::CodeSetContext_var
00752 // *************************************************************
00753 
00754 ACE_INLINE
00755 CONV_FRAME::CodeSetContext_var::CodeSetContext_var (void) // default constructor
00756   : ptr_ (0)
00757 {}
00758 
00759 ACE_INLINE
00760 CONV_FRAME::CodeSetContext_var::CodeSetContext_var (CONV_FRAME::CodeSetContext *p)
00761   : ptr_ (p)
00762 {}
00763 
00764 ACE_INLINE
00765 CONV_FRAME::CodeSetContext_var::CodeSetContext_var (const CONV_FRAME::CodeSetContext_var &p) // copy constructor
00766 {
00767   if (p.ptr_)
00768     ACE_NEW (this->ptr_, CONV_FRAME::CodeSetContext(*p.ptr_));
00769   else
00770     this->ptr_ = 0;
00771 }
00772 
00773 ACE_INLINE
00774 CONV_FRAME::CodeSetContext_var::~CodeSetContext_var (void) // destructor
00775 {
00776   delete this->ptr_;
00777 }
00778 
00779 ACE_INLINE CONV_FRAME::CodeSetContext_var &
00780 CONV_FRAME::CodeSetContext_var::operator= (CONV_FRAME::CodeSetContext *p)
00781 {
00782   delete this->ptr_;
00783   this->ptr_ = p;
00784   return *this;
00785 }
00786 
00787 ACE_INLINE CONV_FRAME::CodeSetContext_var &
00788 CONV_FRAME::CodeSetContext_var::operator= (const CONV_FRAME::CodeSetContext_var &p)
00789 {
00790   if (this != &p)
00791     {
00792       if (p.ptr_ == 0)
00793         {
00794           delete this->ptr_;
00795           this->ptr_ = 0;
00796         }
00797       else
00798         {
00799           CONV_FRAME::CodeSetContext *deep_copy = 
00800             new CONV_FRAME::CodeSetContext (*p.ptr_);
00801           
00802           if (deep_copy != 0)
00803             {
00804               CONV_FRAME::CodeSetContext *tmp = deep_copy;
00805               deep_copy = this->ptr_;
00806               this->ptr_ = tmp;
00807               delete deep_copy;
00808             }
00809         }
00810     }
00811   
00812   return *this;
00813 }
00814 
00815 ACE_INLINE const CONV_FRAME::CodeSetContext *
00816 CONV_FRAME::CodeSetContext_var::operator-> (void) const
00817 {
00818   return this->ptr_;
00819 }
00820 
00821 ACE_INLINE CONV_FRAME::CodeSetContext *
00822 CONV_FRAME::CodeSetContext_var::operator-> (void)
00823 {
00824   return this->ptr_;
00825 }
00826 
00827 ACE_INLINE
00828 CONV_FRAME::CodeSetContext_var::operator const CONV_FRAME::CodeSetContext &() const // cast
00829 {
00830   return *this->ptr_;
00831 }
00832 
00833 ACE_INLINE
00834 CONV_FRAME::CodeSetContext_var::operator CONV_FRAME::CodeSetContext &() // cast
00835 {
00836   return *this->ptr_;
00837 }
00838 
00839 ACE_INLINE
00840 CONV_FRAME::CodeSetContext_var::operator CONV_FRAME::CodeSetContext &() const// cast
00841 {
00842   return *this->ptr_;
00843 }
00844 
00845 ACE_INLINE const CONV_FRAME::CodeSetContext &
00846 CONV_FRAME::CodeSetContext_var::in (void) const
00847 {
00848   return *this->ptr_;
00849 }
00850 
00851 ACE_INLINE CONV_FRAME::CodeSetContext &
00852 CONV_FRAME::CodeSetContext_var::inout (void)
00853 {
00854   return *this->ptr_;
00855 }
00856 
00857 // mapping for fixed size
00858 ACE_INLINE CONV_FRAME::CodeSetContext &
00859 CONV_FRAME::CodeSetContext_var::out (void)
00860 {
00861   return *this->ptr_;
00862 }
00863 
00864 ACE_INLINE CONV_FRAME::CodeSetContext
00865 CONV_FRAME::CodeSetContext_var::_retn (void)
00866 {
00867   return *this->ptr_;
00868 }
00869 
00870 ACE_INLINE CONV_FRAME::CodeSetContext *
00871 CONV_FRAME::CodeSetContext_var::ptr (void) const
00872 {
00873   return this->ptr_;
00874 }
00875 
00876 CORBA::Boolean TAO_Export operator<< (
00877     TAO_OutputCDR &,
00878     const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &
00879   );
00880 CORBA::Boolean TAO_Export operator>> (
00881     TAO_InputCDR &,
00882     CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &
00883   );
00884 
00885 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CONV_FRAME::CodeSetComponent &_tao_aggregate)
00886 {
00887   if (
00888     (strm << _tao_aggregate.native_code_set) &&
00889     (strm << _tao_aggregate.conversion_code_sets)
00890   )
00891     return 1;
00892   else
00893     return 0;
00894 
00895 }
00896 
00897 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CONV_FRAME::CodeSetComponent &_tao_aggregate)
00898 {
00899   if (
00900     (strm >> _tao_aggregate.native_code_set) &&
00901     (strm >> _tao_aggregate.conversion_code_sets)
00902   )
00903     return 1;
00904   else
00905     return 0;
00906 
00907 }
00908 
00909 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CONV_FRAME::CodeSetComponentInfo &_tao_aggregate)
00910 {
00911   if (
00912     (strm << _tao_aggregate.ForCharData) &&
00913     (strm << _tao_aggregate.ForWcharData)
00914   )
00915     return 1;
00916   else
00917     return 0;
00918 
00919 }
00920 
00921 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CONV_FRAME::CodeSetComponentInfo &_tao_aggregate)
00922 {
00923   if (
00924     (strm >> _tao_aggregate.ForCharData) &&
00925     (strm >> _tao_aggregate.ForWcharData)
00926   )
00927     return 1;
00928   else
00929     return 0;
00930 
00931 }
00932 
00933 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CONV_FRAME::CodeSetContext &_tao_aggregate)
00934 {
00935   if (
00936     (strm << _tao_aggregate.char_data) &&
00937     (strm << _tao_aggregate.wchar_data)
00938   )
00939     return 1;
00940   else
00941     return 0;
00942 
00943 }
00944 
00945 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CONV_FRAME::CodeSetContext &_tao_aggregate)
00946 {
00947   if (
00948     (strm >> _tao_aggregate.char_data) &&
00949     (strm >> _tao_aggregate.wchar_data)
00950   )
00951     return 1;
00952   else
00953     return 0;
00954 
00955 }

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