Public Member Functions | Private Attributes

TAO::Out_Var_Size_Argument_T< S, Insert_Policy > Class Template Reference

Template class for OUT stub argument of fixed size IDL types. More...

#include <Var_Size_Argument_T.h>

Inheritance diagram for TAO::Out_Var_Size_Argument_T< S, Insert_Policy >:
Inheritance graph
[legend]
Collaboration diagram for TAO::Out_Var_Size_Argument_T< S, Insert_Policy >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Out_Var_Size_Argument_T (typename S::_out_type 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 *& arg (void)

Private Attributes

S *& x_

Detailed Description

template<typename S, template< typename > class Insert_Policy>
class TAO::Out_Var_Size_Argument_T< S, Insert_Policy >

Template class for OUT stub argument of fixed size IDL types.

Definition at line 107 of file Var_Size_Argument_T.h.


Constructor & Destructor Documentation

template<typename S , template< typename > class Insert_Policy>
TAO::Out_Var_Size_Argument_T< S, Insert_Policy >::Out_Var_Size_Argument_T ( typename S::_out_type  x  ) 

Definition at line 56 of file Var_Size_Argument_T.inl.

  : x_ (x.ptr ())
{}


Member Function Documentation

template<typename S , template< typename > class Insert_Policy>
S *& TAO::Out_Var_Size_Argument_T< S, Insert_Policy >::arg ( void   ) 

Definition at line 66 of file Var_Size_Argument_T.inl.

{
  return this->x_;
}

template<typename S , template< typename > class Insert_Policy>
CORBA::Boolean TAO::Out_Var_Size_Argument_T< S, 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 101 of file Var_Size_Argument_T.cpp.

{
#if defined (ACE_HAS_NEW_NOTHROW)
  this->x_ = new (ACE_nothrow) S;
#else
  this->x_ = new S;
#endif /* ACE_HAS_NEW_NOTHROW */
  return cdr >> *this->x_;
}

template<typename S , template< typename > class Insert_Policy>
void TAO::Out_Var_Size_Argument_T< S, Insert_Policy >::interceptor_value ( CORBA::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 118 of file Var_Size_Argument_T.cpp.

{
  Insert_Policy<S>::any_insert (any, *this->x_);
}


Member Data Documentation

template<typename S , template< typename > class Insert_Policy>
S*& TAO::Out_Var_Size_Argument_T< S, Insert_Policy >::x_ [private]

Definition at line 119 of file Var_Size_Argument_T.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines