summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/PortableServerC.i
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableServer/PortableServerC.i')
-rw-r--r--TAO/tao/PortableServer/PortableServerC.i198
1 files changed, 108 insertions, 90 deletions
diff --git a/TAO/tao/PortableServer/PortableServerC.i b/TAO/tao/PortableServer/PortableServerC.i
index beddce7b123..396b4062009 100644
--- a/TAO/tao/PortableServer/PortableServerC.i
+++ b/TAO/tao/PortableServer/PortableServerC.i
@@ -21,7 +21,7 @@
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-
+
#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLESERVER_POALIST_CI_)
#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLESERVER_POALIST_CI_
@@ -29,36 +29,36 @@
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (CORBA::ULong nelems)
{
PortableServer::POA **buf = 0;
-
+
ACE_NEW_RETURN (buf, PortableServer::POA*[nelems], 0);
-
+
for (CORBA::ULong i = 0; i < nelems; i++)
{
buf[i] = PortableServer::POA::_nil ();
}
-
+
return buf;
}
-
- ACE_INLINE void
+
+ ACE_INLINE void
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::freebuf (PortableServer::POA **buffer)
{
if (buffer == 0)
return;
delete[] buffer;
}
-
+
ACE_INLINE
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_TAO_Unbounded_Object_Sequence_PortableServer_POAList (void)
{
}
-
+
ACE_INLINE
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_TAO_Unbounded_Object_Sequence_PortableServer_POAList (CORBA::ULong maximum)
: TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (maximum))
{
}
-
+
ACE_INLINE
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_TAO_Unbounded_Object_Sequence_PortableServer_POAList (CORBA::ULong maximum,
CORBA::ULong length,
@@ -67,7 +67,7 @@
: TAO_Unbounded_Base_Sequence (maximum, length, value, release)
{
}
-
+
ACE_INLINE
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_TAO_Unbounded_Object_Sequence_PortableServer_POAList(const _TAO_Unbounded_Object_Sequence_PortableServer_POAList &rhs)
: TAO_Unbounded_Base_Sequence (rhs)
@@ -76,12 +76,12 @@
{
PortableServer::POA **tmp1 = _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (this->maximum_);
PortableServer::POA ** const tmp2 = ACE_reinterpret_cast (PortableServer::POA ** ACE_CAST_CONST, rhs.buffer_);
-
+
for (CORBA::ULong i = 0; i < rhs.length_; ++i)
{
tmp1[i] = PortableServer::POA::_duplicate (tmp2[i]);
}
-
+
this->buffer_ = tmp1;
}
else
@@ -89,17 +89,17 @@
this->buffer_ = 0;
}
}
-
+
ACE_INLINE PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList &
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::operator= (const _TAO_Unbounded_Object_Sequence_PortableServer_POAList &rhs)
{
if (this == &rhs)
return *this;
-
+
if (this->release_)
{
PortableServer::POA **tmp = ACE_reinterpret_cast (PortableServer::POA **, this->buffer_);
-
+
for (CORBA::ULong i = 0; i < this->length_; ++i)
{
CORBA::release (tmp[i]);
@@ -113,20 +113,20 @@
}
else
this->buffer_ = _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (rhs.maximum_);
-
+
TAO_Unbounded_Base_Sequence::operator= (rhs);
-
+
PortableServer::POA **tmp1 = ACE_reinterpret_cast (PortableServer::POA **, this->buffer_);
PortableServer::POA ** const tmp2 = ACE_reinterpret_cast (PortableServer::POA ** ACE_CAST_CONST, rhs.buffer_);
-
+
for (CORBA::ULong i = 0; i < rhs.length_; ++i)
{
tmp1[i] = PortableServer::POA::_duplicate (tmp2[i]);
}
-
+
return *this;
}
-
+
ACE_INLINE TAO_Object_Manager<PortableServer::POA,PortableServer::POA_var>
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::operator[] (CORBA::ULong index) const
// read-write accessor
@@ -135,7 +135,7 @@
PortableServer::POA ** const tmp = ACE_reinterpret_cast (PortableServer::POA ** ACE_CAST_CONST, this->buffer_);
return TAO_Object_Manager<PortableServer::POA,PortableServer::POA_var> (tmp + index, this->release_);
}
-
+
ACE_INLINE PortableServer::POA* *
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::get_buffer (CORBA::Boolean orphan)
{
@@ -169,18 +169,18 @@
}
return result;
}
-
+
ACE_INLINE const PortableServer::POA* *
PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::get_buffer (void) const
{
return ACE_reinterpret_cast(const PortableServer::POA ** ACE_CAST_CONST, this->buffer_);
}
-
-
+
+
#endif /* end #if !defined */
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
#if !defined (_PORTABLESERVER_POALIST_CI_)
#define _PORTABLESERVER_POALIST_CI_
@@ -236,7 +236,7 @@ PortableServer::POAList_var::operator= (const ::PortableServer::POAList_var &p)
{
POAList *deep_copy =
new POAList (*p.ptr_);
-
+
if (deep_copy != 0)
{
POAList *tmp = deep_copy;
@@ -246,7 +246,7 @@ PortableServer::POAList_var::operator= (const ::PortableServer::POAList_var &p)
}
}
}
-
+
return *this;
}
@@ -262,27 +262,27 @@ PortableServer::POAList_var::operator-> (void)
return this->ptr_;
}
-ACE_INLINE
+ACE_INLINE
PortableServer::POAList_var::operator const ::PortableServer::POAList &() const // cast
{
return *this->ptr_;
}
-ACE_INLINE
-PortableServer::POAList_var::operator ::PortableServer::POAList &() // cast
+ACE_INLINE
+PortableServer::POAList_var::operator ::PortableServer::POAList &() // cast
{
return *this->ptr_;
}
-ACE_INLINE
-PortableServer::POAList_var::operator ::PortableServer::POAList &() const // cast
+ACE_INLINE
+PortableServer::POAList_var::operator ::PortableServer::POAList &() const // cast
{
return *this->ptr_;
}
// variable-size types only
ACE_INLINE
-PortableServer::POAList_var::operator ::PortableServer::POAList *&() // cast
+PortableServer::POAList_var::operator ::PortableServer::POAList *&() // cast
{
return this->ptr_;
}
@@ -305,7 +305,7 @@ PortableServer::POAList_var::inout (void)
return *this->ptr_;
}
-// mapping for variable size
+// mapping for variable size
ACE_INLINE ::PortableServer::POAList *&
PortableServer::POAList_var::out (void)
{
@@ -366,7 +366,7 @@ PortableServer::POAList_out::operator= (POAList *p)
return *this;
}
-ACE_INLINE
+ACE_INLINE
PortableServer::POAList_out::operator ::PortableServer::POAList *&() // cast
{
return this->ptr_;
@@ -455,7 +455,7 @@ PortableServer::ObjectId_var::operator= (const ::PortableServer::ObjectId_var &p
{
ObjectId *deep_copy =
new ObjectId (*p.ptr_);
-
+
if (deep_copy != 0)
{
ObjectId *tmp = deep_copy;
@@ -465,7 +465,7 @@ PortableServer::ObjectId_var::operator= (const ::PortableServer::ObjectId_var &p
}
}
}
-
+
return *this;
}
@@ -493,20 +493,20 @@ PortableServer::ObjectId_var::operator-> (void)
return this->ptr_;
}
-ACE_INLINE
+ACE_INLINE
PortableServer::ObjectId_var::operator const ::PortableServer::ObjectId &() const // cast
{
return *this->ptr_;
}
-ACE_INLINE
-PortableServer::ObjectId_var::operator ::PortableServer::ObjectId &() // cast
+ACE_INLINE
+PortableServer::ObjectId_var::operator ::PortableServer::ObjectId &() // cast
{
return *this->ptr_;
}
-ACE_INLINE
-PortableServer::ObjectId_var::operator ::PortableServer::ObjectId &() const // cast
+ACE_INLINE
+PortableServer::ObjectId_var::operator ::PortableServer::ObjectId &() const // cast
{
return *this->ptr_;
}
@@ -535,7 +535,7 @@ PortableServer::ObjectId_var::inout (void)
return *this->ptr_;
}
-// mapping for variable size
+// mapping for variable size
ACE_INLINE ::PortableServer::ObjectId *&
PortableServer::ObjectId_var::out (void)
{
@@ -596,7 +596,7 @@ PortableServer::ObjectId_out::operator= (ObjectId *p)
return *this;
}
-ACE_INLINE
+ACE_INLINE
PortableServer::ObjectId_out::operator ::PortableServer::ObjectId *&() // cast
{
return this->ptr_;
@@ -627,9 +627,13 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
// Inline operations for exception PortableServer::ForwardRequest
// *************************************************************
+// *************************************************************
+// Inline operations for exception PortableServer::NotAGroupObject
+// *************************************************************
+
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-
+
#if !defined (__TAO_UNBOUNDED_SEQUENCE_PORTABLESERVER_IDS_CI_)
#define __TAO_UNBOUNDED_SEQUENCE_PORTABLESERVER_IDS_CI_
@@ -642,24 +646,24 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
ACE_NEW_RETURN (retval, PortableServer::ObjectId[size], 0);
return retval;
}
-
+
ACE_INLINE void PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::freebuf (PortableServer::ObjectId *buffer)
// Free the sequence.
{
delete [] buffer;
}
-
+
ACE_INLINE
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::_TAO_Unbounded_Sequence_PortableServer_IDs (void) // Default constructor.
{
}
-
+
ACE_INLINE
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::_TAO_Unbounded_Sequence_PortableServer_IDs (CORBA::ULong maximum) // Constructor using a maximum length value.
: TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_PortableServer_IDs::allocbuf (maximum))
{
}
-
+
ACE_INLINE
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::_TAO_Unbounded_Sequence_PortableServer_IDs (CORBA::ULong maximum,
CORBA::ULong length,
@@ -668,7 +672,7 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
: TAO_Unbounded_Base_Sequence (maximum, length, data, release)
{
}
-
+
ACE_INLINE
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::_TAO_Unbounded_Sequence_PortableServer_IDs (const _TAO_Unbounded_Sequence_PortableServer_IDs &rhs)
// Copy constructor.
@@ -678,10 +682,10 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
{
PortableServer::ObjectId *tmp1 = _TAO_Unbounded_Sequence_PortableServer_IDs::allocbuf (this->maximum_);
PortableServer::ObjectId * const tmp2 = ACE_reinterpret_cast (PortableServer::ObjectId * ACE_CAST_CONST, rhs.buffer_);
-
+
for (CORBA::ULong i = 0; i < this->length_; ++i)
tmp1[i] = tmp2[i];
-
+
this->buffer_ = tmp1;
}
else
@@ -689,14 +693,14 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
this->buffer_ = 0;
}
}
-
+
ACE_INLINE PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs &
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::operator= (const _TAO_Unbounded_Sequence_PortableServer_IDs &rhs)
// Assignment operator.
{
if (this == &rhs)
return *this;
-
+
if (this->release_)
{
if (this->maximum_ < rhs.maximum_)
@@ -709,18 +713,18 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
}
else
this->buffer_ = _TAO_Unbounded_Sequence_PortableServer_IDs::allocbuf (rhs.maximum_);
-
+
TAO_Unbounded_Base_Sequence::operator= (rhs);
-
+
PortableServer::ObjectId *tmp1 = ACE_reinterpret_cast (PortableServer::ObjectId *, this->buffer_);
PortableServer::ObjectId * const tmp2 = ACE_reinterpret_cast (PortableServer::ObjectId * ACE_CAST_CONST, rhs.buffer_);
-
+
for (CORBA::ULong i = 0; i < this->length_; ++i)
tmp1[i] = tmp2[i];
-
+
return *this;
}
-
+
// = Accessors.
ACE_INLINE PortableServer::ObjectId &
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::operator[] (CORBA::ULong i)
@@ -730,7 +734,7 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
PortableServer::ObjectId* tmp = ACE_reinterpret_cast(PortableServer::ObjectId*,this->buffer_);
return tmp[i];
}
-
+
ACE_INLINE const PortableServer::ObjectId &
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::operator[] (CORBA::ULong i) const
// operator []
@@ -739,9 +743,9 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
PortableServer::ObjectId * const tmp = ACE_reinterpret_cast (PortableServer::ObjectId* ACE_CAST_CONST, this->buffer_);
return tmp[i];
}
-
+
// Implement the TAO_Base_Sequence methods (see Sequence.h)
-
+
ACE_INLINE PortableServer::ObjectId *
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::get_buffer (CORBA::Boolean orphan)
{
@@ -775,13 +779,13 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
}
return result;
}
-
+
ACE_INLINE const PortableServer::ObjectId *
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::get_buffer (void) const
{
return ACE_reinterpret_cast(const PortableServer::ObjectId * ACE_CAST_CONST, this->buffer_);
}
-
+
ACE_INLINE void
PortableServer::_TAO_Unbounded_Sequence_PortableServer_IDs::replace (CORBA::ULong max,
CORBA::ULong length,
@@ -798,11 +802,11 @@ PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
this->buffer_ = data;
this->release_ = release;
}
-
+
#endif /* end #if !defined */
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
#if !defined (_PORTABLESERVER_IDS_CI_)
#define _PORTABLESERVER_IDS_CI_
@@ -858,7 +862,7 @@ PortableServer::IDs_var::operator= (const ::PortableServer::IDs_var &p)
{
IDs *deep_copy =
new IDs (*p.ptr_);
-
+
if (deep_copy != 0)
{
IDs *tmp = deep_copy;
@@ -868,7 +872,7 @@ PortableServer::IDs_var::operator= (const ::PortableServer::IDs_var &p)
}
}
}
-
+
return *this;
}
@@ -884,27 +888,27 @@ PortableServer::IDs_var::operator-> (void)
return this->ptr_;
}
-ACE_INLINE
+ACE_INLINE
PortableServer::IDs_var::operator const ::PortableServer::IDs &() const // cast
{
return *this->ptr_;
}
-ACE_INLINE
-PortableServer::IDs_var::operator ::PortableServer::IDs &() // cast
+ACE_INLINE
+PortableServer::IDs_var::operator ::PortableServer::IDs &() // cast
{
return *this->ptr_;
}
-ACE_INLINE
-PortableServer::IDs_var::operator ::PortableServer::IDs &() const // cast
+ACE_INLINE
+PortableServer::IDs_var::operator ::PortableServer::IDs &() const // cast
{
return *this->ptr_;
}
// variable-size types only
ACE_INLINE
-PortableServer::IDs_var::operator ::PortableServer::IDs *&() // cast
+PortableServer::IDs_var::operator ::PortableServer::IDs *&() // cast
{
return this->ptr_;
}
@@ -933,7 +937,7 @@ PortableServer::IDs_var::inout (void)
return *this->ptr_;
}
-// mapping for variable size
+// mapping for variable size
ACE_INLINE ::PortableServer::IDs *&
PortableServer::IDs_var::out (void)
{
@@ -994,7 +998,7 @@ PortableServer::IDs_out::operator= (IDs *p)
return *this;
}
-ACE_INLINE
+ACE_INLINE
PortableServer::IDs_out::operator ::PortableServer::IDs *&() // cast
{
return this->ptr_;
@@ -1826,6 +1830,20 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm,PortableServer::Forward
return 0;
}
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::NotAGroupObject &_tao_aggregate)
+{
+ // first marshal the repository ID
+ if (strm << _tao_aggregate._id ())
+ return 1;
+ else
+ return 0;
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &,PortableServer::NotAGroupObject&)
+{
+ return 1;
+}
+
#if !defined _TAO_CDR_OP_PortableServer_IDs_I_
#define _TAO_CDR_OP_PortableServer_IDs_I_
@@ -1855,12 +1873,12 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::Thread
{
CORBA::ULong _tao_temp = 0;
CORBA::Boolean _tao_result = strm >> _tao_temp;
-
+
if (_tao_result == 1)
{
_tao_enumval = ACE_static_cast (PortableServer::ThreadPolicyValue, _tao_temp);
}
-
+
return _tao_result;
}
@@ -1876,12 +1894,12 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::Lifesp
{
CORBA::ULong _tao_temp = 0;
CORBA::Boolean _tao_result = strm >> _tao_temp;
-
+
if (_tao_result == 1)
{
_tao_enumval = ACE_static_cast (PortableServer::LifespanPolicyValue, _tao_temp);
}
-
+
return _tao_result;
}
@@ -1895,12 +1913,12 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::IdUniq
{
CORBA::ULong _tao_temp = 0;
CORBA::Boolean _tao_result = strm >> _tao_temp;
-
+
if (_tao_result == 1)
{
_tao_enumval = ACE_static_cast (PortableServer::IdUniquenessPolicyValue, _tao_temp);
}
-
+
return _tao_result;
}
@@ -1914,12 +1932,12 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::IdAssi
{
CORBA::ULong _tao_temp = 0;
CORBA::Boolean _tao_result = strm >> _tao_temp;
-
+
if (_tao_result == 1)
{
_tao_enumval = ACE_static_cast (PortableServer::IdAssignmentPolicyValue, _tao_temp);
}
-
+
return _tao_result;
}
@@ -1935,12 +1953,12 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::Implic
{
CORBA::ULong _tao_temp = 0;
CORBA::Boolean _tao_result = strm >> _tao_temp;
-
+
if (_tao_result == 1)
{
_tao_enumval = ACE_static_cast (PortableServer::ImplicitActivationPolicyValue, _tao_temp);
}
-
+
return _tao_result;
}
@@ -1954,12 +1972,12 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::Servan
{
CORBA::ULong _tao_temp = 0;
CORBA::Boolean _tao_result = strm >> _tao_temp;
-
+
if (_tao_result == 1)
{
_tao_enumval = ACE_static_cast (PortableServer::ServantRetentionPolicyValue, _tao_temp);
}
-
+
return _tao_result;
}
@@ -1973,12 +1991,12 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::Reques
{
CORBA::ULong _tao_temp = 0;
CORBA::Boolean _tao_result = strm >> _tao_temp;
-
+
if (_tao_result == 1)
{
_tao_enumval = ACE_static_cast (PortableServer::RequestProcessingPolicyValue, _tao_temp);
}
-
+
return _tao_result;
}