diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tao/Var_Array_Argument_T.inl | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/Var_Array_Argument_T.inl')
-rw-r--r-- | TAO/tao/Var_Array_Argument_T.inl | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/TAO/tao/Var_Array_Argument_T.inl b/TAO/tao/Var_Array_Argument_T.inl new file mode 100644 index 00000000000..49ae7c5f813 --- /dev/null +++ b/TAO/tao/Var_Array_Argument_T.inl @@ -0,0 +1,107 @@ +// -*- C++ -*- +// +// $Id$ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +template<typename S_forany, + class Insert_Policy> +ACE_INLINE +TAO::In_Var_Array_Argument_T<S_forany,Insert_Policy>:: +In_Var_Array_Argument_T (const typename S_forany::_slice_type * x) + : x_ (const_cast<typename S_forany::_slice_type *> (x)) +{ +} + +template<typename S_forany, + class Insert_Policy> +ACE_INLINE +typename S_forany::_slice_type const * +TAO::In_Var_Array_Argument_T<S_forany,Insert_Policy>::arg (void) const +{ + return this->x_.in (); +} + +// ========================================================================== + +template<typename S_forany, + class Insert_Policy> +ACE_INLINE +TAO::Inout_Var_Array_Argument_T<S_forany,Insert_Policy>:: +Inout_Var_Array_Argument_T (typename S_forany::_slice_type *&x) + : x_ (x) +{ +} + +template<typename S_forany, + class Insert_Policy> +ACE_INLINE +typename S_forany::_slice_type * +TAO::Inout_Var_Array_Argument_T<S_forany,Insert_Policy>::arg (void) +{ + return this->x_.inout (); +} + +// ========================================================================== + +template<typename S_out, + typename S_forany, + class Insert_Policy> +ACE_INLINE +TAO::Out_Var_Array_Argument_T<S_out,S_forany,Insert_Policy>:: +Out_Var_Array_Argument_T (S_out x) + : x_ (x.ptr ()) +{ +} + +template<typename S_out, + typename S_forany, + class Insert_Policy> +ACE_INLINE +typename S_forany::_slice_type *& +TAO::Out_Var_Array_Argument_T<S_out,S_forany,Insert_Policy>::arg (void) +{ + return this->x_; +} + +// ========================================================================== + +template<typename S_var, + typename S_forany, + class Insert_Policy> +ACE_INLINE +TAO::Ret_Var_Array_Argument_T<S_var,S_forany,Insert_Policy>:: +Ret_Var_Array_Argument_T (void) +{} + +template<typename S_var, + typename S_forany, + class Insert_Policy> +ACE_INLINE +typename S_forany::_slice_type *& +TAO::Ret_Var_Array_Argument_T<S_var,S_forany,Insert_Policy>::arg (void) +{ + return this->x_.out (); +} + +template<typename S_var, + typename S_forany, + class Insert_Policy> +ACE_INLINE +typename S_forany::_slice_type * +TAO::Ret_Var_Array_Argument_T<S_var,S_forany,Insert_Policy>::excp (void) +{ + return this->x_.ptr (); +} + +template<typename S_var, + typename S_forany, + class Insert_Policy> +ACE_INLINE +typename S_forany::_slice_type * +TAO::Ret_Var_Array_Argument_T<S_var,S_forany,Insert_Policy>::retn (void) +{ + return this->x_._retn (); +} + +TAO_END_VERSIONED_NAMESPACE_DECL |