TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy > Class Template Reference

Template class for IN stub argument of (w)char/boolean/octet. More...

#include <Special_Basic_Argument_T.h>

Inheritance diagram for TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >:

Inheritance graph
[legend]
Collaboration diagram for TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 In_Special_Basic_Clonable_Argument_T (S const &)
virtual ~In_Special_Basic_Clonable_Argument_T (void)
virtual Argumentclone (void)
 Template method to clone a TAO Argument.

Private Attributes

bool is_clone_

Detailed Description

template<typename S, typename to_S, typename from_S, class Insert_Policy>
class TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >

Template class for IN stub argument of (w)char/boolean/octet.

Definition at line 65 of file Special_Basic_Argument_T.h.


Constructor & Destructor Documentation

template<typename S, typename to_S, typename from_S, class Insert_Policy>
ACE_INLINE TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >::In_Special_Basic_Clonable_Argument_T ( S const &   ) 

Definition at line 34 of file Special_Basic_Argument_T.inl.

00037   : In_Special_Basic_Argument_T<S,to_S,from_S,Insert_Policy> (x),
00038     is_clone_ (false)
00039 {}

template<typename S, typename to_S, typename from_S, class Insert_Policy>
TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >::~In_Special_Basic_Clonable_Argument_T ( void   )  [virtual]

Definition at line 44 of file Special_Basic_Argument_T.cpp.

00045 {
00046   if (this->is_clone_)
00047     {
00048       S* tmp = const_cast<S*> (&this->x_);
00049       delete tmp;
00050     }
00051 }


Member Function Documentation

template<typename S, typename to_S, typename from_S, class Insert_Policy>
TAO::Argument * TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >::clone ( void   )  [virtual]

Template method to clone a TAO Argument.

Reimplemented from TAO::Argument.

Definition at line 58 of file Special_Basic_Argument_T.cpp.

References TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >::is_clone_.

00059 {
00060   S* clone_x = new S (this->x_);
00061   In_Special_Basic_Clonable_Argument_T<S,to_S,from_S,Insert_Policy>* clone_arg
00062     = new In_Special_Basic_Clonable_Argument_T<S,to_S,from_S,Insert_Policy> (*clone_x);
00063   clone_arg->is_clone_ = true;
00064   return clone_arg;
00065 }


Member Data Documentation

template<typename S, typename to_S, typename from_S, class Insert_Policy>
bool TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >::is_clone_ [private]

Definition at line 75 of file Special_Basic_Argument_T.h.

Referenced by TAO::In_Special_Basic_Clonable_Argument_T< S, to_S, from_S, Insert_Policy >::clone().


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