TAO::Out_Var_Array_Argument_T< S_out, S_forany, Insert_Policy > Class Template Reference

OUT stub argument of variable size element array. More...

#include <Var_Array_Argument_T.h>

Inheritance diagram for TAO::Out_Var_Array_Argument_T< S_out, S_forany, Insert_Policy >:

Inheritance graph
[legend]
Collaboration diagram for TAO::Out_Var_Array_Argument_T< S_out, S_forany, Insert_Policy >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Out_Var_Array_Argument_T (S_out x)
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)

Private Attributes

S_forany::_slice_type *& x_

Detailed Description

template<typename S_out, typename S_forany, class Insert_Policy>
class TAO::Out_Var_Array_Argument_T< S_out, S_forany, Insert_Policy >

OUT stub argument of variable size element array.

Definition at line 105 of file Var_Array_Argument_T.h.


Constructor & Destructor Documentation

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  ) 

Definition at line 61 of file Var_Array_Argument_T.inl.

00062   : x_ (x.ptr ())
00063 {
00064 }


Member Function Documentation

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

Definition at line 71 of file Var_Array_Argument_T.inl.

References TAO::Out_Var_Array_Argument_T< S_out, S_forany, Insert_Policy >::x_.

00072 {
00073   return this->x_;
00074 }

template<typename S_out, typename S_forany, class Insert_Policy>
CORBA::Boolean TAO::Out_Var_Array_Argument_T< S_out, 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 109 of file Var_Array_Argument_T.cpp.

References ACE_ALLOCATOR_RETURN.

00112 {
00113   typedef TAO::Array_Traits<S_forany> ARRAY_TRAITS;
00114   ACE_ALLOCATOR_RETURN (this->x_,
00115                         ARRAY_TRAITS::alloc (),
00116                         0);
00117   S_forany tmp (this->x_);
00118   return cdr >> tmp;
00119 }

template<typename S_out, typename S_forany, class Insert_Policy>
void TAO::Out_Var_Array_Argument_T< S_out, 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 128 of file Var_Array_Argument_T.cpp.

00129 {
00130   S_forany tmp (this->x_);
00131   Insert_Policy::any_insert (any, tmp);
00132 }


Member Data Documentation

template<typename S_out, typename S_forany, class Insert_Policy>
S_forany::_slice_type*& TAO::Out_Var_Array_Argument_T< S_out, S_forany, Insert_Policy >::x_ [private]

Definition at line 117 of file Var_Array_Argument_T.h.

Referenced by TAO::Out_Var_Array_Argument_T< S_out, S_forany, Insert_Policy >::arg().


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