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

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

#include <Var_Size_Argument_T.h>

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 In_Var_Size_Clonable_Argument_T (S const &x)
virtual ~In_Var_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_Var_Size_Clonable_Argument_T< S, Insert_Policy >

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

Definition at line 59 of file Var_Size_Argument_T.h.


Constructor & Destructor Documentation

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

Definition at line 27 of file Var_Size_Argument_T.inl.

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

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

Definition at line 38 of file Var_Size_Argument_T.cpp.

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


Member Function Documentation

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

Template method to clone a TAO Argument.

Reimplemented from TAO::Argument.

Definition at line 50 of file Var_Size_Argument_T.cpp.

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

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


Member Data Documentation

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

Definition at line 69 of file Var_Size_Argument_T.h.

Referenced by TAO::In_Var_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:12 2010 for TAO by  doxygen 1.4.7