TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy > Class Template Reference

Template class for INOUT object argument. More...

#include <Object_Argument_T.h>

Inheritance diagram for TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >:

Inheritance graph
[legend]
Collaboration diagram for TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Inout_Object_Argument_T (S_ptr &x)
virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr)
 Marshal the argument into the given CDR output stream.
virtual CORBA::Boolean demarshal (TAO_InputCDR &cdr)
 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_ptr & arg (void)

Private Attributes

S_ptr & x_

Detailed Description

template<typename S_ptr, typename S_traits, class Insert_Policy>
class TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >

Template class for INOUT object argument.

Definition at line 89 of file Object_Argument_T.h.


Constructor & Destructor Documentation

template<typename S_ptr, typename S_traits, class Insert_Policy>
ACE_INLINE TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::Inout_Object_Argument_T ( S_ptr &  x  ) 

Definition at line 37 of file Object_Argument_T.inl.

00040   : x_ (x)
00041 {}


Member Function Documentation

template<typename S_ptr, typename S_traits, class Insert_Policy>
ACE_INLINE S_ptr & TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::arg ( void   ) 

Definition at line 48 of file Object_Argument_T.inl.

References TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::x_.

00049 {
00050   return this->x_;
00051 }

template<typename S_ptr, typename S_traits, class Insert_Policy>
CORBA::Boolean TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::demarshal ( TAO_InputCDR cdr  )  [virtual]

Demarshal the argument from the given CDR input stream.

Note:
The default implementation simply returns true.

Reimplemented from TAO::Argument.

Definition at line 92 of file Object_Argument_T.cpp.

References CORBA::release(), and TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::x_.

00093 {
00094   S_traits::release (this->x_);
00095   return cdr >> this->x_;
00096 }

template<typename S_ptr, typename S_traits, class Insert_Policy>
void TAO::Inout_Object_Argument_T< S_ptr, S_traits, 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 104 of file Object_Argument_T.cpp.

00106 {
00107   Insert_Policy::any_insert (any, this->x_);
00108 }

template<typename S_ptr, typename S_traits, class Insert_Policy>
CORBA::Boolean TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::marshal ( TAO_OutputCDR cdr  )  [virtual]

Marshal the argument into the given CDR output stream.

Note:
The default implementation simply returns true.

Reimplemented from TAO::Argument.

Definition at line 83 of file Object_Argument_T.cpp.

References TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::x_.

00084 {
00085   return cdr << this->x_;
00086 }


Member Data Documentation

template<typename S_ptr, typename S_traits, class Insert_Policy>
S_ptr& TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::x_ [private]

Definition at line 102 of file Object_Argument_T.h.

Referenced by TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::arg(), TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::demarshal(), and TAO::Inout_Object_Argument_T< S_ptr, S_traits, Insert_Policy >::marshal().


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