TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy > Class Template Reference

Return stub value of variable size element array. More...

#include <Var_Array_Argument_T.h>

Inheritance diagram for TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >:

Inheritance graph
[legend]
Collaboration diagram for TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Ret_Var_Array_Argument_T (void)
virtual CORBA::Boolean demarshal (TAO_InputCDR &)
 Demarshal the argument from the given CDR input stream.
virtual void interceptor_value (CORBA::Any *any) const
 Populate the given CORBA::Any result argument.
S_forany::_slice_type *& arg (void)
S_forany::_slice_type * excp (void)
S_forany::_slice_type * retn (void)

Private Attributes

S_var x_

Detailed Description

template<typename S_var, typename S_forany, class Insert_Policy>
class TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >

Return stub value of variable size element array.

Definition at line 129 of file Var_Array_Argument_T.h.


Constructor & Destructor Documentation

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   ) 

Definition at line 83 of file Var_Array_Argument_T.inl.

00084 {}


Member Function Documentation

template<typename S_var, typename S_forany, class Insert_Policy>
ACE_INLINE S_forany::_slice_type *& TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::arg ( void   ) 

Definition at line 91 of file Var_Array_Argument_T.inl.

References TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::x_.

00092 {
00093   return this->x_.out ();
00094 }

template<typename S_var, typename S_forany, class Insert_Policy>
CORBA::Boolean TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::demarshal ( TAO_InputCDR  )  [virtual]

Demarshal the argument from the given CDR input stream.

Note:
The default implementation simply returns true.

Reimplemented from TAO::Argument.

Definition at line 142 of file Var_Array_Argument_T.cpp.

References ACE_ALLOCATOR_RETURN, and TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::x_.

00145 {
00146   typedef TAO::Array_Traits<S_forany> ARRAY_TRAITS;
00147   typename S_forany::_slice_type * tmp_ptr = 0;
00148   ACE_ALLOCATOR_RETURN (tmp_ptr,
00149                         ARRAY_TRAITS::alloc (),
00150                         0);
00151   this->x_ = tmp_ptr;
00152   S_forany tmp (this->x_.ptr ());
00153   return cdr >> tmp;
00154 }

template<typename S_var, typename S_forany, class Insert_Policy>
ACE_INLINE S_forany::_slice_type * TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::excp ( void   ) 

Definition at line 101 of file Var_Array_Argument_T.inl.

References TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::x_.

00102 {
00103   return this->x_.ptr ();
00104 }

template<typename S_var, typename S_forany, class Insert_Policy>
void TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::interceptor_value ( CORBA::Any *  any  )  const [virtual]

Populate the given CORBA::Any result argument.

Note:
The default implementation is a no-op.

Reimplemented from TAO::Argument.

Definition at line 163 of file Var_Array_Argument_T.cpp.

00164 {
00165   Insert_Policy::any_insert (any, S_forany (this->x_.ptr ()));
00166 }

template<typename S_var, typename S_forany, class Insert_Policy>
ACE_INLINE S_forany::_slice_type * TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::retn ( void   ) 

Definition at line 111 of file Var_Array_Argument_T.inl.

References TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::x_.

00112 {
00113   return this->x_._retn ();
00114 }


Member Data Documentation

template<typename S_var, typename S_forany, class Insert_Policy>
S_var TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::x_ [private]

Definition at line 144 of file Var_Array_Argument_T.h.

Referenced by TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::arg(), TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::demarshal(), TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::excp(), and TAO::Ret_Var_Array_Argument_T< S_var, S_forany, Insert_Policy >::retn().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:39:19 2010 for TAO by  doxygen 1.4.7