Public Member Functions | Private Attributes

TAO::In_Object_Clonable_Argument_T< S_ptr, Insert_Policy > Class Template Reference

Template class for IN object argument. More...

#include <Object_Argument_T.h>

Inheritance diagram for TAO::In_Object_Clonable_Argument_T< S_ptr, Insert_Policy >:
Inheritance graph
[legend]
Collaboration diagram for TAO::In_Object_Clonable_Argument_T< S_ptr, Insert_Policy >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 In_Object_Clonable_Argument_T (S_ptr x)
virtual ~In_Object_Clonable_Argument_T (void)
virtual Argumentclone (void)
 Template method to clone a TAO Argument.

Private Attributes

bool is_clone_

Detailed Description

template<typename S_ptr, template< typename > class Insert_Policy>
class TAO::In_Object_Clonable_Argument_T< S_ptr, Insert_Policy >

Template class for IN object argument.

Definition at line 67 of file Object_Argument_T.h.


Constructor & Destructor Documentation

template<typename S_ptr , template< typename > class Insert_Policy>
TAO::In_Object_Clonable_Argument_T< S_ptr, Insert_Policy >::In_Object_Clonable_Argument_T ( S_ptr  x  ) 

Definition at line 26 of file Object_Argument_T.inl.

  : In_Object_Argument_T<S_ptr,Insert_Policy> (x),
    is_clone_ (false)
{}

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

Definition at line 56 of file Object_Argument_T.cpp.

{
  if (this->is_clone_)
    {
      In_Object_Argument_Cloner_T<S_ptr>::release (this->x_);
    }
}


Member Function Documentation

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

Template method to clone a TAO Argument.

Reimplemented from TAO::Argument.

Definition at line 67 of file Object_Argument_T.cpp.

{
  In_Object_Argument_Cloner_T<S_ptr>::duplicate (this->x_);

  In_Object_Clonable_Argument_T<S_ptr,Insert_Policy>* clone_arg
    = new In_Object_Clonable_Argument_T<S_ptr,Insert_Policy> (this->x_);
  clone_arg->is_clone_ = true;
  return clone_arg;
}


Member Data Documentation

template<typename S_ptr, template< typename > class Insert_Policy>
bool TAO::In_Object_Clonable_Argument_T< S_ptr, Insert_Policy >::is_clone_ [private]

Definition at line 77 of file Object_Argument_T.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines