summaryrefslogtreecommitdiff
path: root/TAO/tao/Any.i
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Any.i')
-rw-r--r--TAO/tao/Any.i261
1 files changed, 17 insertions, 244 deletions
diff --git a/TAO/tao/Any.i b/TAO/tao/Any.i
index e90463f0307..9913ee5dc2e 100644
--- a/TAO/tao/Any.i
+++ b/TAO/tao/Any.i
@@ -13,18 +13,6 @@ CORBA_Any::replace (CORBA::TypeCode_ptr type,
this->replace (type, value, 0, TAO_IN_ENV);
}
-ACE_INLINE CORBA::Boolean
-CORBA_Any::any_owns_data (void) const
-{
- return (this->any_owns_data_ != 0 && this->value_ != 0);
-}
-
-ACE_INLINE ACE_Message_Block*
-CORBA_Any::_tao_get_cdr (void) const
-{
- return this->cdr_;
-}
-
// insertion operators
ACE_INLINE void
@@ -83,7 +71,6 @@ CORBA_Any::operator<<= (CORBA::Double d)
this->replace (CORBA::_tc_double, new CORBA::Double (d), 1, env);
}
-// insertion of Any - copying
ACE_INLINE void
CORBA_Any::operator<<= (const CORBA_Any& a)
{
@@ -91,18 +78,10 @@ CORBA_Any::operator<<= (const CORBA_Any& a)
this->replace (CORBA::_tc_any, new CORBA_Any (a), 1, env);
}
-// insertion of Any - non-copying
-ACE_INLINE void
-CORBA::Any::operator<<= (CORBA::Any_ptr anyptr)
-{
- CORBA::Environment env;
- this->replace (CORBA::_tc_any, anyptr, 1, env);
-}
-
// implementing the special types
ACE_INLINE
-CORBA_Any::to_object::to_object (CORBA_Object_out obj)
- : ref_ (obj.ptr ())
+CORBA_Any::to_object::to_object (CORBA::Object_ptr &obj)
+ : ref_ (obj)
{
}
@@ -138,9 +117,9 @@ CORBA_Any::operator<<= (from_wchar wc)
1, env);
}
-// *************************************************************
-// Inline operations for class CORBA_Any_var
-// *************************************************************
+// ----------------------------------------------------------------------
+// CORBA_Any_var type
+// ----------------------------------------------------------------------
ACE_INLINE
CORBA_Any_var::CORBA_Any_var (void)
@@ -212,221 +191,9 @@ CORBA_Any_var::_retn (void)
return temp;
}
-// *************************************************************
-// CORBA_Any_var insertion operators
-// *************************************************************
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Short rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::UShort rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Long rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::ULong rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::LongLong rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::ULongLong rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Float rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Double rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, const CORBA_Any& rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, const char* rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::TypeCode_ptr rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, const CORBA::Object_ptr rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Any::from_boolean rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Any::from_char rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Any::from_wchar rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Any::from_octet rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-ACE_INLINE void
-operator <<= (CORBA_Any_var lhs, CORBA::Any::from_string rhs)
-{
- lhs.inout () <<= rhs;
-}
-
-// *************************************************************
-// CORBA_Any_var extraction operators
-// *************************************************************
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Short &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::UShort &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Long &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::ULong &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::LongLong &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::ULongLong &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Float &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Double &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA_Any &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::TypeCode_ptr &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, char* &rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Any::to_boolean rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Any::to_octet rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Any::to_char rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Any::to_wchar rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Any::to_string rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-ACE_INLINE CORBA::Boolean
-operator >>= (CORBA_Any_var lhs, CORBA::Any::to_object rhs)
-{
- return lhs.inout () >>= rhs;
-}
-
-// *************************************************************
-// Inline operations for class CORBA_Any_out
-// *************************************************************
+// ----------------------------------------------------------------------
+// CORBA_Any_out type
+// ----------------------------------------------------------------------
ACE_INLINE
CORBA_Any_out::CORBA_Any_out (CORBA_Any *&s)
@@ -480,8 +247,14 @@ CORBA_Any_out::ptr (void)
return this->ptr_;
}
-ACE_INLINE CORBA_Any *
-CORBA_Any_out::operator-> (void)
+ACE_INLINE CORBA::Boolean
+CORBA_Any::any_owns_data (void) const
{
- return this->ptr_;
+ return (this->any_owns_data_ != 0 && this->value_ != 0);
+}
+
+ACE_INLINE ACE_Message_Block*
+CORBA_Any::_tao_get_cdr (void) const
+{
+ return this->cdr_;
}