IN stub argument of fixed size element array. More...
#include <Fixed_Array_Argument_T.h>
Public Member Functions | |
In_Fixed_Array_Clonable_Argument_T (const typename S_forany::_slice_type *x) | |
virtual | ~In_Fixed_Array_Clonable_Argument_T (void) |
virtual Argument * | clone (void) |
Template method to clone a TAO Argument. | |
Private Attributes | |
bool | is_clone_ |
IN stub argument of fixed size element array.
Definition at line 60 of file Fixed_Array_Argument_T.h.
TAO::In_Fixed_Array_Clonable_Argument_T< S_forany, Insert_Policy >::In_Fixed_Array_Clonable_Argument_T | ( | const typename S_forany::_slice_type * | x | ) |
Definition at line 41 of file Fixed_Array_Argument_T.inl.
: In_Fixed_Array_Argument_T<S_forany,Insert_Policy> (x),
is_clone_ (false)
{
}
TAO::In_Fixed_Array_Clonable_Argument_T< S_forany, Insert_Policy >::~In_Fixed_Array_Clonable_Argument_T | ( | void | ) | [virtual] |
Definition at line 39 of file Fixed_Array_Argument_T.cpp.
{ if (this->is_clone_) { typedef TAO::details::array_traits<S_forany> ARRAY_TRAITS; typename ARRAY_TRAITS::slice_type * tmp = const_cast<typename ARRAY_TRAITS::slice_type *>(this->x_.in ()); ARRAY_TRAITS::free (tmp); } }
TAO::Argument * TAO::In_Fixed_Array_Clonable_Argument_T< S_forany, Insert_Policy >::clone | ( | void | ) | [virtual] |
Template method to clone a TAO Argument.
Reimplemented from TAO::Argument.
Definition at line 53 of file Fixed_Array_Argument_T.cpp.
{ typedef TAO::details::array_traits<S_forany> ARRAY_TRAITS; typename ARRAY_TRAITS::slice_type * tmp_ptr = 0; ACE_ALLOCATOR_RETURN (tmp_ptr, ARRAY_TRAITS::alloc (), 0); ARRAY_TRAITS::copy (tmp_ptr, this->x_.in ()); In_Fixed_Array_Clonable_Argument_T<S_forany,Insert_Policy>* clone_arg = new In_Fixed_Array_Clonable_Argument_T<S_forany,Insert_Policy> (tmp_ptr); clone_arg->is_clone_ = true; return clone_arg; }
bool TAO::In_Fixed_Array_Clonable_Argument_T< S_forany, Insert_Policy >::is_clone_ [private] |
Definition at line 70 of file Fixed_Array_Argument_T.h.