diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-24 13:44:55 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-24 13:44:55 +0000 |
commit | bec7502b0378ce251f466cc69095e6b429733ae7 (patch) | |
tree | 30ccc38ebab6b21bd7a5b04fcd46c556766fa366 /TAO/tao/CurrentC.i | |
parent | 1b01f16a141350eeb04def9eef23e8eaa5e2833b (diff) | |
download | ATCD-bec7502b0378ce251f466cc69095e6b429733ae7.tar.gz |
ChangeLogTag: Tue Apr 24 08:28:40 2001 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/CurrentC.i')
-rw-r--r-- | TAO/tao/CurrentC.i | 204 |
1 files changed, 48 insertions, 156 deletions
diff --git a/TAO/tao/CurrentC.i b/TAO/tao/CurrentC.i index 6c7385c65a2..c068cc3b04c 100644 --- a/TAO/tao/CurrentC.i +++ b/TAO/tao/CurrentC.i @@ -1,177 +1,69 @@ -/* -*- C++ -*- $Id$ */ - -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler ******* -// TAO and the TAO IDL Compiler have been developed by the Center for -// Distributed Object Computing at Washington University, St. Louis. +// -*- C++ -*- $Id$ */ +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ // // Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - - -#if !defined (_CORBA_CURRENT___VAR_CI_) -#define _CORBA_CURRENT___VAR_CI_ - -// ************************************************************* -// Inline operations for class CORBA_Current_var -// ************************************************************* - -ACE_INLINE -CORBA_Current_var::CORBA_Current_var (void) // default constructor - : ptr_ (CORBA_Current::_nil ()) -{} - -ACE_INLINE ::CORBA_Current_ptr -CORBA_Current_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_Current_var::CORBA_Current_var (const ::CORBA_Current_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (CORBA_Current::_duplicate (p.ptr ())) -{} - -ACE_INLINE -CORBA_Current_var::~CORBA_Current_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE CORBA_Current_var & -CORBA_Current_var::operator= (CORBA_Current_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE CORBA_Current_var & -CORBA_Current_var::operator= (const ::CORBA_Current_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = ::CORBA_Current::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -CORBA_Current_var::operator const ::CORBA_Current_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -CORBA_Current_var::operator ::CORBA_Current_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA_Current_ptr -CORBA_Current_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA_Current_ptr -CORBA_Current_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::CORBA_Current_ptr & -CORBA_Current_var::inout (void) -{ - return this->ptr_; -} +// http://www.cs.wustl.edu/~schmidt/TAO.html -ACE_INLINE ::CORBA_Current_ptr & -CORBA_Current_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::CORBA_Current::_nil (); - return this->ptr_; -} -ACE_INLINE ::CORBA_Current_ptr -CORBA_Current_var::_retn (void) -{ - // yield ownership of managed obj reference - ::CORBA_Current_ptr val = this->ptr_; - this->ptr_ = ::CORBA_Current::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_CORBA_CURRENT___OUT_CI_) -#define _CORBA_CURRENT___OUT_CI_ - -// ************************************************************* -// Inline operations for class CORBA_Current_out -// ************************************************************* - -ACE_INLINE -CORBA_Current_out::CORBA_Current_out (CORBA_Current_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::CORBA_Current::_nil (); -} - -ACE_INLINE -CORBA_Current_out::CORBA_Current_out (CORBA_Current_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::CORBA_Current::_nil (); -} - -ACE_INLINE -CORBA_Current_out::CORBA_Current_out (const ::CORBA_Current_out &p) // copy constructor - : ptr_ (ACE_const_cast (CORBA_Current_out &, p).ptr_) -{} - -ACE_INLINE ::CORBA_Current_out & -CORBA_Current_out::operator= (const ::CORBA_Current_out &p) -{ - this->ptr_ = ACE_const_cast (CORBA_Current_out&, p).ptr_; - return *this; -} +#if !defined (_CORBA_CURRENT___CI_) +#define _CORBA_CURRENT___CI_ -ACE_INLINE CORBA_Current_out & -CORBA_Current_out::operator= (const ::CORBA_Current_var &p) +ACE_INLINE CORBA_Current_ptr +tao_CORBA_Current_duplicate ( + CORBA_Current_ptr p + ) { - this->ptr_ = ::CORBA_Current::_duplicate (p.ptr ()); - return *this; + return CORBA_Current::_duplicate (p); } -ACE_INLINE CORBA_Current_out & -CORBA_Current_out::operator= (CORBA_Current_ptr p) +ACE_INLINE void +tao_CORBA_Current_release ( + CORBA_Current_ptr p + ) { - this->ptr_ = p; - return *this; + CORBA::release (p); } -ACE_INLINE -CORBA_Current_out::operator ::CORBA_Current_ptr &() // cast +ACE_INLINE CORBA_Current_ptr +tao_CORBA_Current_nil ( + void + ) { - return this->ptr_; + return CORBA_Current::_nil (); } -ACE_INLINE ::CORBA_Current_ptr & -CORBA_Current_out::ptr (void) // ptr +ACE_INLINE CORBA_Current_ptr +tao_CORBA_Current_narrow ( + CORBA::Object *p, + CORBA::Environment &ACE_TRY_ENV + ) { - return this->ptr_; + return CORBA_Current::_narrow (p, ACE_TRY_ENV); } -ACE_INLINE ::CORBA_Current_ptr -CORBA_Current_out::operator-> (void) +ACE_INLINE CORBA::Object * +tao_CORBA_Current_upcast ( + void *src + ) { - return this->ptr_; + CORBA_Current **tmp = + ACE_static_cast (CORBA_Current **, src); + return *tmp; } |