summaryrefslogtreecommitdiff
path: root/TAO/tao/Exception.i
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-28 08:15:38 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-28 08:15:38 +0000
commitda7f2339e494a513cb9eb9f17d1912d7cab02203 (patch)
treea6ca2fa99933f48ec44a0bfd01ff34165a808039 /TAO/tao/Exception.i
parentb740f0340795bcfaa1120e2fd6a690b13517c0bd (diff)
downloadATCD-da7f2339e494a513cb9eb9f17d1912d7cab02203.tar.gz
Fixed SystemException contructor's siganture. Added ExceptionList_var class. Refcounting ExceptionList.
Diffstat (limited to 'TAO/tao/Exception.i')
-rw-r--r--TAO/tao/Exception.i99
1 files changed, 99 insertions, 0 deletions
diff --git a/TAO/tao/Exception.i b/TAO/tao/Exception.i
index 57a7d180608..d9280d9f383 100644
--- a/TAO/tao/Exception.i
+++ b/TAO/tao/Exception.i
@@ -47,3 +47,102 @@ CORBA_ExceptionList::count (void)
{
return (CORBA::ULong) this->tc_list_.size ();
}
+
+ACE_INLINE CORBA_ExceptionList_ptr
+CORBA_ExceptionList::_nil (void)
+{
+ return (CORBA_ExceptionList_ptr)0;
+}
+
+ACE_INLINE
+CORBA_ExceptionList_var::CORBA_ExceptionList_var (void) // default constructor
+ : ptr_ (CORBA_ExceptionList::_nil ())
+{}
+
+ACE_INLINE
+CORBA_ExceptionList_var::CORBA_ExceptionList_var (CORBA_ExceptionList_ptr p)
+ : ptr_ (p)
+{}
+
+ACE_INLINE CORBA_ExceptionList_ptr
+CORBA_ExceptionList_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+CORBA_ExceptionList_var::CORBA_ExceptionList_var (const CORBA_ExceptionList_var &p) // copy constructor
+ : ptr_ (p.ptr_->_duplicate ())
+{}
+
+ACE_INLINE
+CORBA_ExceptionList_var::~CORBA_ExceptionList_var (void) // destructor
+{
+ this->ptr_->_destroy ();
+}
+
+ACE_INLINE CORBA_ExceptionList_var &
+CORBA_ExceptionList_var::operator= (CORBA_ExceptionList_ptr p)
+{
+ this->ptr_->_destroy ();
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE CORBA_ExceptionList_var &
+CORBA_ExceptionList_var::operator= (const CORBA_ExceptionList_var &p)
+{
+ if (this != &p)
+ {
+ this->ptr_->_destroy ();
+ this->ptr_ = p.ptr_->_duplicate ();
+ }
+ return *this;
+}
+
+ACE_INLINE
+CORBA_ExceptionList_var::operator const CORBA_ExceptionList_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+CORBA_ExceptionList_var::operator CORBA_ExceptionList_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE CORBA_ExceptionList_ptr
+CORBA_ExceptionList_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE CORBA_ExceptionList_ptr
+CORBA_ExceptionList_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE CORBA_ExceptionList_ptr &
+CORBA_ExceptionList_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE CORBA_ExceptionList_ptr &
+CORBA_ExceptionList_var::out (void)
+{
+ this->ptr_->_destroy ();
+ this->ptr_ = CORBA_ExceptionList::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE CORBA_ExceptionList_ptr
+CORBA_ExceptionList_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ CORBA_ExceptionList_ptr val = this->ptr_;
+ this->ptr_ = CORBA_ExceptionList::_nil ();
+ return val;
+}