diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-11-12 21:39:32 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-11-12 21:39:32 +0000 |
commit | 6c8d74487fcf8c8418ff5205d0bc08dd99e1e34e (patch) | |
tree | 557e544d8274c8e0404d336c0e9b0e6cb36e7e72 /ace/CORBA_Ref.cpp | |
parent | add7fcff0bc337851545e695aaf25c8c64b547b5 (diff) | |
download | ATCD-java-1_0_1a.tar.gz |
This commit was manufactured by cvs2svn to create tag 'java-1_0_1a'.java-1_0_1a
Diffstat (limited to 'ace/CORBA_Ref.cpp')
-rw-r--r-- | ace/CORBA_Ref.cpp | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/ace/CORBA_Ref.cpp b/ace/CORBA_Ref.cpp deleted file mode 100644 index 5bfec4317ae..00000000000 --- a/ace/CORBA_Ref.cpp +++ /dev/null @@ -1,86 +0,0 @@ -// CORBA_Ref.cpp -// $Id$ - -#if !defined (ACE_CORBA_REF_C) -#define ACE_CORBA_REF_C - -#define ACE_BUILD_DLL -#include "ace/CORBA_Ref.h" - -#if !defined (__ACE_INLINE__) -#include "ace/CORBA_Ref.i" -#endif /* __ACE_INLINE__ */ - -template<class CORBA_REF> -ACE_CORBA_Ref<CORBA_REF>::ACE_CORBA_Ref (void) - : ref_ (0) -{ - ACE_TRACE ("ACE_CORBA_Ref<CORBA_REF>::ACE_CORBA_Ref"); -} - -template<class CORBA_REF> -ACE_CORBA_Ref<CORBA_REF>::ACE_CORBA_Ref (CORBA_REF *ref) -{ - ACE_TRACE ("ACE_CORBA_Ref<CORBA_REF>::ACE_CORBA_Ref"); - if (ref != 0) - ref_ = ref->_duplicate (); - else - ref_ = 0; -} - -template<class CORBA_REF> CORBA_REF * -ACE_CORBA_Ref<CORBA_REF>::operator= (CORBA_REF *ref) -{ - ACE_TRACE ("ACE_CORBA_Ref<CORBA_REF>::operator="); - if (ref_ != 0) - ref_->_release (); - if (ref == 0) - { - ref_ = 0; - return 0; - } - else - return ref_ = ref->_duplicate (); -} - -template<class CORBA_REF> -ACE_CORBA_Ref<CORBA_REF>::operator CORBA_REF * (void) const -{ - ACE_TRACE ("ACE_CORBA_Ref<CORBA_REF>::operator CORBA_REF *"); - ACE_ASSERT (ref_ != 0); - return ref_; -} - -template<class CORBA_REF> CORBA_REF * -ACE_CORBA_Ref<CORBA_REF>::operator-> (void) const -{ - ACE_TRACE ("ACE_CORBA_Ref<CORBA_REF>::operator->"); - ACE_ASSERT (ref_ != 0); - return ref_; -} - -template<class CORBA_REF> int -ACE_CORBA_Ref<CORBA_REF>::operator== (CORBA_REF *rhs) const -{ - ACE_TRACE ("ACE_CORBA_Ref<CORBA_REF>::operator=="); - // pointer comparison. - return ref_ == rhs; -} - -template<class CORBA_REF> int -ACE_CORBA_Ref<CORBA_REF>::operator!= (CORBA_REF *rhs) const -{ - ACE_TRACE ("ACE_CORBA_Ref<CORBA_REF>::operator!="); - // pointer comparison. - return ref_ != rhs; -} - -template<class CORBA_REF> -ACE_CORBA_Ref<CORBA_REF>::~ACE_CORBA_Ref () -{ - ACE_TRACE ("ACE_CORBA_Ref<CORBA_REF>::~ACE_CORBA_Ref"); - if (ref_ != 0) - ref_->_release (); -} - -#endif // ACE_CORBA_REF_C |