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

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

#include <Fixed_Size_Argument_T.h>

Inheritance diagram for TAO::In_Fixed_Size_Clonable_Argument_T< S, Insert_Policy >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

bool is_clone_

Detailed Description

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

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

Definition at line 59 of file Fixed_Size_Argument_T.h.


Constructor & Destructor Documentation

template<typename S, class Insert_Policy>
ACE_INLINE TAO::In_Fixed_Size_Clonable_Argument_T< S, Insert_Policy >::In_Fixed_Size_Clonable_Argument_T ( S const &  x  ) 

Definition at line 27 of file Fixed_Size_Argument_T.inl.

00028   : In_Fixed_Size_Argument_T<S,Insert_Policy> (x),
00029     is_clone_ (false)
00030 {}

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

Definition at line 36 of file Fixed_Size_Argument_T.cpp.

00037 {
00038   if (this->is_clone_)
00039     {
00040       S* tmp = const_cast<S*> (this->x_);
00041       delete tmp;
00042     }
00043 }


Member Function Documentation

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

Template method to clone a TAO Argument.

Reimplemented from TAO::Argument.

Definition at line 48 of file Fixed_Size_Argument_T.cpp.

References TAO::In_Fixed_Size_Clonable_Argument_T< S, Insert_Policy >::is_clone_.

00049 {
00050   S* clone_x = new S (*(this->x_));
00051   In_Fixed_Size_Clonable_Argument_T<S,Insert_Policy>* clone_arg =
00052       new In_Fixed_Size_Clonable_Argument_T<S,Insert_Policy> (*clone_x);
00053   clone_arg->is_clone_ = true;
00054   return clone_arg;
00055 }


Member Data Documentation

template<typename S, class Insert_Policy>
bool TAO::In_Fixed_Size_Clonable_Argument_T< S, Insert_Policy >::is_clone_ [private]

Definition at line 69 of file Fixed_Size_Argument_T.h.

Referenced by TAO::In_Fixed_Size_Clonable_Argument_T< S, Insert_Policy >::clone().


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