#include <Var_Size_Argument_T.h>
Inheritance diagram for TAO::In_Var_Size_Clonable_Argument_T< S, Insert_Policy >:
Public Member Functions | |
In_Var_Size_Clonable_Argument_T (S const &x) | |
virtual | ~In_Var_Size_Clonable_Argument_T (void) |
virtual Argument * | clone (void) |
Template method to clone a TAO Argument. | |
Private Attributes | |
bool | is_clone_ |
Definition at line 59 of file Var_Size_Argument_T.h.
ACE_INLINE TAO::In_Var_Size_Clonable_Argument_T< S, Insert_Policy >::In_Var_Size_Clonable_Argument_T | ( | S const & | x | ) |
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 }
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 }
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().