summaryrefslogtreecommitdiff
path: root/TAO/tao/Var_Size_Argument_T.inl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Var_Size_Argument_T.inl')
-rw-r--r--TAO/tao/Var_Size_Argument_T.inl107
1 files changed, 107 insertions, 0 deletions
diff --git a/TAO/tao/Var_Size_Argument_T.inl b/TAO/tao/Var_Size_Argument_T.inl
new file mode 100644
index 00000000000..bf388928b4e
--- /dev/null
+++ b/TAO/tao/Var_Size_Argument_T.inl
@@ -0,0 +1,107 @@
+// -*- C++ -*-
+//
+// $Id$
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+TAO::In_Var_Size_Argument_T<S,Insert_Policy>::In_Var_Size_Argument_T (S const & x)
+ : x_ (&x)
+{
+}
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+const S &
+TAO::In_Var_Size_Argument_T<S,Insert_Policy>::arg (void) const
+{
+ return *this->x_;
+}
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+TAO::In_Var_Size_Clonable_Argument_T<S,Insert_Policy>::In_Var_Size_Clonable_Argument_T (S const & x)
+ : In_Var_Size_Argument_T<S,Insert_Policy> (x),
+ is_clone_ (false)
+{}
+
+// ==========================================================================
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+TAO::Inout_Var_Size_Argument_T<S,Insert_Policy>::Inout_Var_Size_Argument_T (S & x)
+ : x_ (&x)
+{
+}
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+S &
+TAO::Inout_Var_Size_Argument_T<S,Insert_Policy>::arg (void)
+{
+ return *this->x_;
+}
+
+// ==========================================================================
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+TAO::Out_Var_Size_Argument_T<S,Insert_Policy>::Out_Var_Size_Argument_T (
+ typename S::_out_type x
+ )
+ : x_ (x.ptr ())
+{}
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+S *&
+TAO::Out_Var_Size_Argument_T<S,Insert_Policy>::arg (void)
+{
+ return this->x_;
+}
+
+// ==========================================================================
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+TAO::Ret_Var_Size_Argument_T<S,Insert_Policy>::Ret_Var_Size_Argument_T (void)
+{
+}
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+S *&
+TAO::Ret_Var_Size_Argument_T<S,Insert_Policy>::arg (void)
+{
+ return this->x_.out ();
+}
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+S *
+TAO::Ret_Var_Size_Argument_T<S,Insert_Policy>::excp (void)
+{
+ return this->x_.ptr ();
+}
+
+template<typename S,
+ class Insert_Policy>
+ACE_INLINE
+S *
+TAO::Ret_Var_Size_Argument_T<S,Insert_Policy>::retn (void)
+{
+ return this->x_._retn ();
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL