summaryrefslogtreecommitdiff
path: root/TAO/tao/DomainC.i
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/DomainC.i')
-rw-r--r--TAO/tao/DomainC.i485
1 files changed, 323 insertions, 162 deletions
diff --git a/TAO/tao/DomainC.i b/TAO/tao/DomainC.i
index 2b3834f6035..551275895ef 100644
--- a/TAO/tao/DomainC.i
+++ b/TAO/tao/DomainC.i
@@ -1,5 +1,4 @@
-/* -*- C++ -*- */
-// $Id$
+/* -*- 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
@@ -8,41 +7,40 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-ACE_INLINE
-CORBA_DomainManager::CORBA_DomainManager (void) // default constructor
-{}
-ACE_INLINE
-CORBA_DomainManager::CORBA_DomainManager (TAO_Stub *objref,
- TAO_ServantBase *_tao_servant,
- CORBA::Boolean _tao_collocated) // constructor
- : CORBA_Object (objref, _tao_servant, _tao_collocated)
-{}
+#if !defined (_CORBA_DOMAINMANAGER___CI_)
+#define _CORBA_DOMAINMANAGER___CI_
ACE_INLINE
-CORBA_DomainManager::~CORBA_DomainManager (void) // destructor
+CORBA_DomainManager::CORBA_DomainManager (TAO_Stub *objref, CORBA::Boolean _tao_collocated) // constructor
+ : CORBA_Object (objref, _tao_collocated)
{}
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_DOMAINMANAGER___VAR_CI_)
+#define _CORBA_DOMAINMANAGER___VAR_CI_
// *************************************************************
-// Inline operations for class CORBA::DomainManager_var
+// Inline operations for class CORBA_DomainManager_var
// *************************************************************
ACE_INLINE
CORBA_DomainManager_var::CORBA_DomainManager_var (void) // default constructor
- : ptr_ (CORBA::DomainManager::_nil ())
+ : ptr_ (CORBA_DomainManager::_nil ())
{}
-ACE_INLINE CORBA::DomainManager_ptr
+ACE_INLINE ::CORBA_DomainManager_ptr
CORBA_DomainManager_var::ptr (void) const
{
return this->ptr_;
}
ACE_INLINE
-CORBA_DomainManager_var::CORBA_DomainManager_var (const CORBA::DomainManager_var &p) // copy constructor
+CORBA_DomainManager_var::CORBA_DomainManager_var (const ::CORBA_DomainManager_var &p) // copy constructor
: TAO_Base_var (),
- ptr_ (CORBA::DomainManager::_duplicate (p.ptr ()))
+ ptr_ (CORBA_DomainManager::_duplicate (p.ptr ()))
{}
ACE_INLINE
@@ -51,81 +49,88 @@ CORBA_DomainManager_var::~CORBA_DomainManager_var (void) // destructor
CORBA::release (this->ptr_);
}
-ACE_INLINE CORBA::DomainManager_var &
-CORBA_DomainManager_var::operator= (CORBA::DomainManager_ptr p)
+ACE_INLINE CORBA_DomainManager_var &
+CORBA_DomainManager_var::operator= (CORBA_DomainManager_ptr p)
{
CORBA::release (this->ptr_);
this->ptr_ = p;
return *this;
}
-ACE_INLINE CORBA::DomainManager_var &
-CORBA_DomainManager_var::operator= (const CORBA::DomainManager_var &p)
+ACE_INLINE CORBA_DomainManager_var &
+CORBA_DomainManager_var::operator= (const ::CORBA_DomainManager_var &p)
{
if (this != &p)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA::DomainManager::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_DomainManager::_duplicate (p.ptr ());
}
return *this;
}
ACE_INLINE
-CORBA_DomainManager_var::operator const CORBA::DomainManager_ptr &() const // cast
+CORBA_DomainManager_var::operator const ::CORBA_DomainManager_ptr &() const // cast
{
return this->ptr_;
}
ACE_INLINE
-CORBA_DomainManager_var::operator CORBA::DomainManager_ptr &() // cast
+CORBA_DomainManager_var::operator ::CORBA_DomainManager_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA::DomainManager_ptr
+ACE_INLINE ::CORBA_DomainManager_ptr
CORBA_DomainManager_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA::DomainManager_ptr
+ACE_INLINE ::CORBA_DomainManager_ptr
CORBA_DomainManager_var::in (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA::DomainManager_ptr &
+ACE_INLINE ::CORBA_DomainManager_ptr &
CORBA_DomainManager_var::inout (void)
{
return this->ptr_;
}
-ACE_INLINE CORBA::DomainManager_ptr &
+ACE_INLINE ::CORBA_DomainManager_ptr &
CORBA_DomainManager_var::out (void)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_DomainManager::_nil ();
+ this->ptr_ = ::CORBA_DomainManager::_nil ();
return this->ptr_;
}
-ACE_INLINE CORBA::DomainManager_ptr
+ACE_INLINE ::CORBA_DomainManager_ptr
CORBA_DomainManager_var::_retn (void)
{
// yield ownership of managed obj reference
- CORBA_DomainManager_ptr val = this->ptr_;
- this->ptr_ = CORBA_DomainManager::_nil ();
+ ::CORBA_DomainManager_ptr val = this->ptr_;
+ this->ptr_ = ::CORBA_DomainManager::_nil ();
return val;
}
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_DOMAINMANAGER___OUT_CI_)
+#define _CORBA_DOMAINMANAGER___OUT_CI_
+
// *************************************************************
-// Inline operations for class CORBA::DomainManager_out
+// Inline operations for class CORBA_DomainManager_out
// *************************************************************
ACE_INLINE
CORBA_DomainManager_out::CORBA_DomainManager_out (CORBA_DomainManager_ptr &p)
: ptr_ (p)
{
- this->ptr_ = CORBA::DomainManager::_nil ();
+ this->ptr_ = ::CORBA_DomainManager::_nil ();
}
ACE_INLINE
@@ -133,25 +138,25 @@ CORBA_DomainManager_out::CORBA_DomainManager_out (CORBA_DomainManager_var &p) //
: ptr_ (p.out ())
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_DomainManager::_nil ();
+ this->ptr_ = ::CORBA_DomainManager::_nil ();
}
ACE_INLINE
-CORBA_DomainManager_out::CORBA_DomainManager_out (const CORBA_DomainManager_out &p) // copy constructor
- : ptr_ (ACE_const_cast (CORBA_DomainManager_out&,p).ptr_)
+CORBA_DomainManager_out::CORBA_DomainManager_out (const ::CORBA_DomainManager_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_DomainManager_out &, p).ptr_)
{}
-ACE_INLINE CORBA_DomainManager_out &
-CORBA_DomainManager_out::operator= (const CORBA_DomainManager_out &p)
+ACE_INLINE ::CORBA_DomainManager_out &
+CORBA_DomainManager_out::operator= (const ::CORBA_DomainManager_out &p)
{
- this->ptr_ = ACE_const_cast (CORBA::DomainManager_out&,p).ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_DomainManager_out&, p).ptr_;
return *this;
}
ACE_INLINE CORBA_DomainManager_out &
-CORBA_DomainManager_out::operator= (const CORBA_DomainManager_var &p)
+CORBA_DomainManager_out::operator= (const ::CORBA_DomainManager_var &p)
{
- this->ptr_ = CORBA::DomainManager::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_DomainManager::_duplicate (p.ptr ());
return *this;
}
@@ -163,46 +168,43 @@ CORBA_DomainManager_out::operator= (CORBA_DomainManager_ptr p)
}
ACE_INLINE
-CORBA_DomainManager_out::operator CORBA_DomainManager_ptr &() // cast
+CORBA_DomainManager_out::operator ::CORBA_DomainManager_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_DomainManager_ptr &
+ACE_INLINE ::CORBA_DomainManager_ptr &
CORBA_DomainManager_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_DomainManager_ptr
+ACE_INLINE ::CORBA_DomainManager_ptr
CORBA_DomainManager_out::operator-> (void)
{
return this->ptr_;
}
-#if (TAO_HAS_MINIMUM_CORBA == 0)
-ACE_INLINE
-CORBA_ConstructionPolicy::CORBA_ConstructionPolicy (void) // default constructor
-{}
+#endif /* end #if !defined */
-ACE_INLINE
-CORBA_ConstructionPolicy::CORBA_ConstructionPolicy (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor
- : CORBA_Object (objref, _tao_servant, _tao_collocated)
-{}
+
+#if !defined (_CORBA_CONSTRUCTIONPOLICY___CI_)
+#define _CORBA_CONSTRUCTIONPOLICY___CI_
ACE_INLINE
-CORBA_ConstructionPolicy::~CORBA_ConstructionPolicy (void) // destructor
+CORBA_ConstructionPolicy::CORBA_ConstructionPolicy (TAO_Stub *objref, CORBA::Boolean _tao_collocated) // constructor
+ : CORBA_Object (objref, _tao_collocated)
{}
-ACE_INLINE CORBA::ConstructionPolicy_ptr
-CORBA_ConstructionPolicy::_nil (void)
-{
- return (CORBA_ConstructionPolicy_ptr)0;
-}
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_CONSTRUCTIONPOLICY___VAR_CI_)
+#define _CORBA_CONSTRUCTIONPOLICY___VAR_CI_
// *************************************************************
-// Inline operations for class CORBA::ConstructionPolicy_var
+// Inline operations for class CORBA_ConstructionPolicy_var
// *************************************************************
ACE_INLINE
@@ -210,19 +212,14 @@ CORBA_ConstructionPolicy_var::CORBA_ConstructionPolicy_var (void) // default con
: ptr_ (CORBA_ConstructionPolicy::_nil ())
{}
-ACE_INLINE
-CORBA_ConstructionPolicy_var::CORBA_ConstructionPolicy_var (CORBA_ConstructionPolicy_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE CORBA_ConstructionPolicy_ptr
+ACE_INLINE ::CORBA_ConstructionPolicy_ptr
CORBA_ConstructionPolicy_var::ptr (void) const
{
return this->ptr_;
}
ACE_INLINE
-CORBA_ConstructionPolicy_var::CORBA_ConstructionPolicy_var (const CORBA_ConstructionPolicy_var &p) // copy constructor
+CORBA_ConstructionPolicy_var::CORBA_ConstructionPolicy_var (const ::CORBA_ConstructionPolicy_var &p) // copy constructor
: TAO_Base_var (),
ptr_ (CORBA_ConstructionPolicy::_duplicate (p.ptr ()))
{}
@@ -242,72 +239,79 @@ CORBA_ConstructionPolicy_var::operator= (CORBA_ConstructionPolicy_ptr p)
}
ACE_INLINE CORBA_ConstructionPolicy_var &
-CORBA_ConstructionPolicy_var::operator= (const CORBA_ConstructionPolicy_var &p)
+CORBA_ConstructionPolicy_var::operator= (const ::CORBA_ConstructionPolicy_var &p)
{
if (this != &p)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_ConstructionPolicy::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_ConstructionPolicy::_duplicate (p.ptr ());
}
return *this;
}
ACE_INLINE
-CORBA_ConstructionPolicy_var::operator const CORBA_ConstructionPolicy_ptr &() const // cast
+CORBA_ConstructionPolicy_var::operator const ::CORBA_ConstructionPolicy_ptr &() const // cast
{
return this->ptr_;
}
ACE_INLINE
-CORBA_ConstructionPolicy_var::operator CORBA_ConstructionPolicy_ptr &() // cast
+CORBA_ConstructionPolicy_var::operator ::CORBA_ConstructionPolicy_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_ConstructionPolicy_ptr
+ACE_INLINE ::CORBA_ConstructionPolicy_ptr
CORBA_ConstructionPolicy_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_ConstructionPolicy_ptr
+ACE_INLINE ::CORBA_ConstructionPolicy_ptr
CORBA_ConstructionPolicy_var::in (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_ConstructionPolicy_ptr &
+ACE_INLINE ::CORBA_ConstructionPolicy_ptr &
CORBA_ConstructionPolicy_var::inout (void)
{
return this->ptr_;
}
-ACE_INLINE CORBA_ConstructionPolicy_ptr &
+ACE_INLINE ::CORBA_ConstructionPolicy_ptr &
CORBA_ConstructionPolicy_var::out (void)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_ConstructionPolicy::_nil ();
+ this->ptr_ = ::CORBA_ConstructionPolicy::_nil ();
return this->ptr_;
}
-ACE_INLINE CORBA_ConstructionPolicy_ptr
+ACE_INLINE ::CORBA_ConstructionPolicy_ptr
CORBA_ConstructionPolicy_var::_retn (void)
{
// yield ownership of managed obj reference
- CORBA_ConstructionPolicy_ptr val = this->ptr_;
- this->ptr_ = CORBA_ConstructionPolicy::_nil ();
+ ::CORBA_ConstructionPolicy_ptr val = this->ptr_;
+ this->ptr_ = ::CORBA_ConstructionPolicy::_nil ();
return val;
}
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_CONSTRUCTIONPOLICY___OUT_CI_)
+#define _CORBA_CONSTRUCTIONPOLICY___OUT_CI_
+
// *************************************************************
-// Inline operations for class CORBA::ConstructionPolicy_out
+// Inline operations for class CORBA_ConstructionPolicy_out
// *************************************************************
ACE_INLINE
CORBA_ConstructionPolicy_out::CORBA_ConstructionPolicy_out (CORBA_ConstructionPolicy_ptr &p)
: ptr_ (p)
{
- this->ptr_ = CORBA_ConstructionPolicy::_nil ();
+ this->ptr_ = ::CORBA_ConstructionPolicy::_nil ();
}
ACE_INLINE
@@ -315,25 +319,25 @@ CORBA_ConstructionPolicy_out::CORBA_ConstructionPolicy_out (CORBA_ConstructionPo
: ptr_ (p.out ())
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_ConstructionPolicy::_nil ();
+ this->ptr_ = ::CORBA_ConstructionPolicy::_nil ();
}
ACE_INLINE
-CORBA_ConstructionPolicy_out::CORBA_ConstructionPolicy_out (const CORBA_ConstructionPolicy_out &p) // copy constructor
- : ptr_ (ACE_const_cast (CORBA_ConstructionPolicy_out&,p).ptr_)
+CORBA_ConstructionPolicy_out::CORBA_ConstructionPolicy_out (const ::CORBA_ConstructionPolicy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_ConstructionPolicy_out &, p).ptr_)
{}
-ACE_INLINE CORBA_ConstructionPolicy_out &
-CORBA_ConstructionPolicy_out::operator= (const CORBA_ConstructionPolicy_out &p)
+ACE_INLINE ::CORBA_ConstructionPolicy_out &
+CORBA_ConstructionPolicy_out::operator= (const ::CORBA_ConstructionPolicy_out &p)
{
- this->ptr_ = ACE_const_cast (CORBA_ConstructionPolicy_out&,p).ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_ConstructionPolicy_out&, p).ptr_;
return *this;
}
ACE_INLINE CORBA_ConstructionPolicy_out &
-CORBA_ConstructionPolicy_out::operator= (const CORBA_ConstructionPolicy_var &p)
+CORBA_ConstructionPolicy_out::operator= (const ::CORBA_ConstructionPolicy_var &p)
{
- this->ptr_ = CORBA::ConstructionPolicy::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_ConstructionPolicy::_duplicate (p.ptr ());
return *this;
}
@@ -345,28 +349,188 @@ CORBA_ConstructionPolicy_out::operator= (CORBA_ConstructionPolicy_ptr p)
}
ACE_INLINE
-CORBA_ConstructionPolicy_out::operator CORBA_ConstructionPolicy_ptr &() // cast
+CORBA_ConstructionPolicy_out::operator ::CORBA_ConstructionPolicy_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_ConstructionPolicy_ptr &
+ACE_INLINE ::CORBA_ConstructionPolicy_ptr &
CORBA_ConstructionPolicy_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_ConstructionPolicy_ptr
+ACE_INLINE ::CORBA_ConstructionPolicy_ptr
CORBA_ConstructionPolicy_out::operator-> (void)
{
return this->ptr_;
}
-#endif /* ! defined (TAO_HAS_MINIMUM_CORBA) */
+#endif /* end #if !defined */
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_DOMAINMANAGERLIST_CI_)
+#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_DOMAINMANAGERLIST_CI_
+
+ ACE_INLINE CORBA_DomainManager **
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (CORBA::ULong nelems)
+ {
+ CORBA_DomainManager **buf = 0;
+
+ ACE_NEW_RETURN (buf, CORBA_DomainManager*[nelems], 0);
+
+ for (CORBA::ULong i = 0; i < nelems; i++)
+ buf[i] = CORBA_DomainManager::_nil ();
+
+ return buf;
+ }
+
+ ACE_INLINE void
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::freebuf (CORBA_DomainManager **buffer)
+ {
+ if (buffer == 0)
+ return;
+ delete[] buffer;
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList (void)
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList (CORBA::ULong maximum)
+ : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (maximum))
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList (CORBA::ULong maximum,
+ CORBA::ULong length,
+ CORBA_DomainManager* *value,
+ CORBA::Boolean release)
+ : TAO_Unbounded_Base_Sequence (maximum, length, value, release)
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList(const _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList &rhs)
+ : TAO_Unbounded_Base_Sequence (rhs)
+ {
+ if (rhs.buffer_ != 0)
+ {
+ CORBA_DomainManager **tmp1 = _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (this->maximum_);
+ CORBA_DomainManager ** const tmp2 = ACE_reinterpret_cast (CORBA_DomainManager ** ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < rhs.length_; ++i)
+ tmp1[i] = CORBA_DomainManager::_duplicate (tmp2[i]);
+
+ this->buffer_ = tmp1;
+ }
+ else
+ {
+ this->buffer_ = 0;
+ }
+ }
+
+ ACE_INLINE _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList &
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::operator= (const _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList &rhs)
+ {
+ if (this == &rhs)
+ return *this;
+
+ if (this->release_)
+ {
+ CORBA_DomainManager **tmp = ACE_reinterpret_cast (CORBA_DomainManager **, this->buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ {
+ CORBA::release (tmp[i]);
+ tmp[i] = CORBA_DomainManager::_nil ();
+ }
+ if (this->maximum_ < rhs.maximum_)
+ {
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::freebuf (tmp);
+ this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (rhs.maximum_);
+ }
+ }
+ else
+ this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (rhs.maximum_);
+
+ TAO_Unbounded_Base_Sequence::operator= (rhs);
+
+ CORBA_DomainManager **tmp1 = ACE_reinterpret_cast (CORBA_DomainManager **, this->buffer_);
+ CORBA_DomainManager ** const tmp2 = ACE_reinterpret_cast (CORBA_DomainManager ** ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < rhs.length_; ++i)
+ tmp1[i] = CORBA_DomainManager::_duplicate (tmp2[i]);
+
+ return *this;
+ }
+
+ ACE_INLINE TAO_Object_Manager<CORBA_DomainManager,CORBA_DomainManager_var>
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::operator[] (CORBA::ULong index) const
+ // read-write accessor
+ {
+ ACE_ASSERT (index < this->maximum_);
+ CORBA_DomainManager ** const tmp = ACE_reinterpret_cast (CORBA_DomainManager ** ACE_CAST_CONST, this->buffer_);
+ return TAO_Object_Manager<CORBA_DomainManager,CORBA_DomainManager_var> (tmp + index, this->release_);
+ }
+
+ ACE_INLINE CORBA_DomainManager* *
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::get_buffer (CORBA::Boolean orphan)
+ {
+ CORBA_DomainManager **result = 0;
+ if (orphan == 0)
+ {
+ // We retain ownership.
+ if (this->buffer_ == 0)
+ {
+ result = _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf (this->maximum_);
+ this->buffer_ = result;
+ this->release_ = 1;
+ }
+ else
+ {
+ result = ACE_reinterpret_cast (CORBA_DomainManager**, this->buffer_);
+ }
+ }
+ else // if (orphan == 1)
+ {
+ if (this->release_ != 0)
+ {
+ // We set the state back to default and relinquish
+ // ownership.
+ result = ACE_reinterpret_cast(CORBA_DomainManager**,this->buffer_);
+ this->maximum_ = 0;
+ this->length_ = 0;
+ this->buffer_ = 0;
+ this->release_ = 0;
+ }
+ }
+ return result;
+ }
+
+ ACE_INLINE const CORBA_DomainManager* *
+ _TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::get_buffer (void) const
+ {
+ return ACE_reinterpret_cast(const CORBA_DomainManager ** ACE_CAST_CONST, this->buffer_);
+ }
+
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_DOMAINMANAGERLIST_CI_)
+#define _CORBA_DOMAINMANAGERLIST_CI_
// *************************************************************
-// Inline operations for class CORBA::DomainManagerList_var
+// Inline operations for class CORBA_DomainManagerList_var
// *************************************************************
ACE_INLINE
@@ -380,10 +544,10 @@ CORBA_DomainManagerList_var::CORBA_DomainManagerList_var (CORBA_DomainManagerLis
{}
ACE_INLINE
-CORBA_DomainManagerList_var::CORBA_DomainManagerList_var (const CORBA_DomainManagerList_var &p) // copy constructor
+CORBA_DomainManagerList_var::CORBA_DomainManagerList_var (const ::CORBA_DomainManagerList_var &p) // copy constructor
{
if (p.ptr_)
- ACE_NEW (this->ptr_, CORBA_DomainManagerList(*p.ptr_));
+ ACE_NEW (this->ptr_, ::CORBA_DomainManagerList (*p.ptr_));
else
this->ptr_ = 0;
}
@@ -403,68 +567,73 @@ CORBA_DomainManagerList_var::operator= (CORBA_DomainManagerList *p)
}
ACE_INLINE CORBA_DomainManagerList_var &
-CORBA_DomainManagerList_var::operator= (const CORBA_DomainManagerList_var &p) // deep copy
+CORBA_DomainManagerList_var::operator= (const ::CORBA_DomainManagerList_var &p) // deep copy
{
if (this != &p)
{
delete this->ptr_;
- ACE_NEW_RETURN (this->ptr_,
- CORBA_DomainManagerList (*p.ptr_),
- *this);
+ ACE_NEW_RETURN (this->ptr_, ::CORBA_DomainManagerList (*p.ptr_), *this);
}
return *this;
}
-ACE_INLINE const CORBA_DomainManagerList *
+ACE_INLINE const ::CORBA_DomainManagerList *
CORBA_DomainManagerList_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_DomainManagerList *
+ACE_INLINE ::CORBA_DomainManagerList *
CORBA_DomainManagerList_var::operator-> (void)
{
return this->ptr_;
}
ACE_INLINE
-CORBA_DomainManagerList_var::operator const CORBA_DomainManagerList &() const // cast
+CORBA_DomainManagerList_var::operator const ::CORBA_DomainManagerList &() const // cast
{
return *this->ptr_;
}
ACE_INLINE
-CORBA_DomainManagerList_var::operator CORBA_DomainManagerList &() // cast
+CORBA_DomainManagerList_var::operator ::CORBA_DomainManagerList &() // cast
{
return *this->ptr_;
}
ACE_INLINE
-CORBA_DomainManagerList_var::operator CORBA_DomainManagerList &() const// cast
+CORBA_DomainManagerList_var::operator ::CORBA_DomainManagerList &() const // cast
{
return *this->ptr_;
}
-ACE_INLINE TAO_Object_Manager<CORBA_DomainManager,CORBA_DomainManager_var>
-CORBA_DomainManagerList_var::operator[] (CORBA::ULong slot)
+// variable-size types only
+ACE_INLINE
+CORBA_DomainManagerList_var::operator ::CORBA_DomainManagerList *&() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE TAO_Object_Manager<CORBA_DomainManager, CORBA_DomainManager_var>
+CORBA_DomainManagerList_var::operator[] (CORBA::ULong index)
{
- return this->ptr_->operator[] (slot);
+ return this->ptr_->operator[] (index);
}
-ACE_INLINE const CORBA_DomainManagerList &
+ACE_INLINE const ::CORBA_DomainManagerList &
CORBA_DomainManagerList_var::in (void) const
{
return *this->ptr_;
}
-ACE_INLINE CORBA_DomainManagerList &
+ACE_INLINE ::CORBA_DomainManagerList &
CORBA_DomainManagerList_var::inout (void)
{
return *this->ptr_;
}
// mapping for variable size
-ACE_INLINE CORBA_DomainManagerList *&
+ACE_INLINE ::CORBA_DomainManagerList *&
CORBA_DomainManagerList_var::out (void)
{
delete this->ptr_;
@@ -472,22 +641,22 @@ CORBA_DomainManagerList_var::out (void)
return this->ptr_;
}
-ACE_INLINE CORBA_DomainManagerList *
+ACE_INLINE ::CORBA_DomainManagerList *
CORBA_DomainManagerList_var::_retn (void)
{
- CORBA_DomainManagerList *tmp = this->ptr_;
+ ::CORBA_DomainManagerList *tmp = this->ptr_;
this->ptr_ = 0;
return tmp;
}
-ACE_INLINE CORBA_DomainManagerList *
-CORBA::DomainManagerList_var::ptr (void) const
+ACE_INLINE ::CORBA_DomainManagerList *
+CORBA_DomainManagerList_var::ptr (void) const
{
return this->ptr_;
}
// *************************************************************
-// Inline operations for class CORBA::DomainManagerList_out
+// Inline operations for class CORBA_DomainManagerList_out
// *************************************************************
ACE_INLINE
@@ -506,18 +675,18 @@ CORBA_DomainManagerList_out::CORBA_DomainManagerList_out (CORBA_DomainManagerLis
}
ACE_INLINE
-CORBA_DomainManagerList_out::CORBA_DomainManagerList_out (const CORBA_DomainManagerList_out &p) // copy constructor
- : ptr_ (ACE_const_cast (CORBA_DomainManagerList_out&,p).ptr_)
+CORBA_DomainManagerList_out::CORBA_DomainManagerList_out (const ::CORBA_DomainManagerList_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_DomainManagerList_out&, p).ptr_)
{}
-ACE_INLINE CORBA_DomainManagerList_out &
-CORBA_DomainManagerList_out::operator= (const CORBA_DomainManagerList_out &p)
+ACE_INLINE ::CORBA_DomainManagerList_out &
+CORBA_DomainManagerList_out::operator= (const ::CORBA_DomainManagerList_out &p)
{
- this->ptr_ = ACE_const_cast (CORBA_DomainManagerList_out&,p).ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_DomainManagerList_out&, p).ptr_;
return *this;
}
-ACE_INLINE CORBA_DomainManagerList_out &
+ACE_INLINE ::CORBA_DomainManagerList_out &
CORBA_DomainManagerList_out::operator= (CORBA_DomainManagerList *p)
{
this->ptr_ = p;
@@ -525,29 +694,42 @@ CORBA_DomainManagerList_out::operator= (CORBA_DomainManagerList *p)
}
ACE_INLINE
-CORBA_DomainManagerList_out::operator CORBA_DomainManagerList *&() // cast
+CORBA_DomainManagerList_out::operator ::CORBA_DomainManagerList *&() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_DomainManagerList *&
+ACE_INLINE ::CORBA_DomainManagerList *&
CORBA_DomainManagerList_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_DomainManagerList *
+ACE_INLINE ::CORBA_DomainManagerList *
CORBA_DomainManagerList_out::operator-> (void)
{
return this->ptr_;
}
-ACE_INLINE TAO_Object_Manager<CORBA_DomainManager,CORBA_DomainManager_var>
-CORBA_DomainManagerList_out::operator[] (CORBA::ULong slot)
+ACE_INLINE TAO_Object_Manager<CORBA_DomainManager, CORBA_DomainManager_var>
+CORBA_DomainManagerList_out::operator[] (CORBA::ULong index)
{
- return this->ptr_->operator[] (slot);
+ return this->ptr_->operator[] (index);
}
+
+#endif /* end #if !defined */
+
+ACE_INLINE CORBA::Boolean
+operator<< (
+ TAO_OutputCDR &,
+ const IR_InterfaceDef*
+ );
+ACE_INLINE CORBA::Boolean
+operator>> (
+ TAO_InputCDR &,
+ IR_InterfaceDef* &
+ );
ACE_INLINE CORBA::Boolean
operator<< (
TAO_OutputCDR &,
@@ -597,8 +779,6 @@ operator>> (
return 0;
}
-#if (TAO_HAS_MINIMUM_CORBA == 0)
-
ACE_INLINE CORBA::Boolean
operator<< (
TAO_OutputCDR &,
@@ -607,7 +787,7 @@ operator<< (
ACE_INLINE CORBA::Boolean
operator>> (
TAO_InputCDR &,
- CORBA::ConstructionPolicy_ptr &
+ CORBA_ConstructionPolicy_ptr &
);
ACE_INLINE CORBA::Boolean
@@ -648,36 +828,17 @@ operator>> (
return 0;
}
-#endif /* ! defined (TAO_HAS_MINIMUM_CORBA) */
-ACE_INLINE CORBA::Boolean operator<< (
- TAO_OutputCDR &strm,
- const CORBA_DomainManagerList &_tao_sequence
- )
-{
- if (strm << _tao_sequence.length ())
- {
- // encode all elements
- CORBA::Boolean _tao_marshal_flag = 1;
- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
- _tao_marshal_flag = (strm << _tao_sequence[i].in ());
- return _tao_marshal_flag;
- }
- return 0; // error
-}
+#if !defined _TAO_CDR_OP_CORBA_DomainManagerList_I_
+#define _TAO_CDR_OP_CORBA_DomainManagerList_I_
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA_DomainManagerList &_tao_sequence)
-{
- CORBA::ULong _tao_seq_len;
- if (strm >> _tao_seq_len)
- {
- // set the length of the sequence
- _tao_sequence.length (_tao_seq_len);
- // retrieve all the elements
- CORBA::Boolean _tao_marshal_flag = 1;
- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
- _tao_marshal_flag = (strm >> _tao_sequence[i].out ());
- return _tao_marshal_flag;
- }
- return 0; // error
-}
+CORBA::Boolean TAO_Export operator<< (
+ TAO_OutputCDR &,
+ const CORBA_DomainManagerList &
+ );
+CORBA::Boolean TAO_Export operator>> (
+ TAO_InputCDR &,
+ CORBA_DomainManagerList &
+ );
+
+#endif /* _TAO_CDR_OP_CORBA_DomainManagerList_I_ */