ACE  6.5.2
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
ACE_Auto_Basic_Ptr< X > Class Template Reference

Implements the draft C++ standard auto_ptr abstraction. This class allows one to work on non-object (basic) types. More...

#include <Auto_Ptr.h>

Inheritance diagram for ACE_Auto_Basic_Ptr< X >:
Inheritance graph
[legend]
Collaboration diagram for ACE_Auto_Basic_Ptr< X >:
Collaboration graph
[legend]

Public Types

typedef X element_type
 

Public Member Functions

 ACE_Auto_Basic_Ptr (X *p=0)
 
 ACE_Auto_Basic_Ptr (ACE_Auto_Basic_Ptr< X > &ap)
 
ACE_Auto_Basic_Ptr< X > & operator= (ACE_Auto_Basic_Ptr< X > &rhs)
 
 ~ACE_Auto_Basic_Ptr (void)
 
X & operator* () const
 
X * get (void) const
 
X * release (void)
 
void reset (X *p=0)
 
void dump (void) const
 Dump the state of an object. More...
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 

Protected Attributes

X * p_
 

Detailed Description

template<typename X>
class ACE_Auto_Basic_Ptr< X >

Implements the draft C++ standard auto_ptr abstraction. This class allows one to work on non-object (basic) types.

Member Typedef Documentation

◆ element_type

template<typename X>
typedef X ACE_Auto_Basic_Ptr< X >::element_type

Constructor & Destructor Documentation

◆ ACE_Auto_Basic_Ptr() [1/2]

template<typename X>
ACE_Auto_Basic_Ptr< X >::ACE_Auto_Basic_Ptr ( X *  p = 0)
inlineexplicit

◆ ACE_Auto_Basic_Ptr() [2/2]

template<class X>
ACE_Auto_Basic_Ptr< X >::ACE_Auto_Basic_Ptr ( ACE_Auto_Basic_Ptr< X > &  ap)
inline

◆ ~ACE_Auto_Basic_Ptr()

template<class X >
ACE_Auto_Basic_Ptr< X >::~ACE_Auto_Basic_Ptr ( void  )
inline

Member Function Documentation

◆ dump()

template<class X >
void ACE_Auto_Basic_Ptr< X >::dump ( void  ) const
inline

Dump the state of an object.

◆ get()

template<class X >
X * ACE_Auto_Basic_Ptr< X >::get ( void  ) const
inline

◆ operator*()

template<class X >
X & ACE_Auto_Basic_Ptr< X >::operator* ( ) const
inline

◆ operator=()

template<class X>
ACE_Auto_Basic_Ptr< X > & ACE_Auto_Basic_Ptr< X >::operator= ( ACE_Auto_Basic_Ptr< X > &  rhs)
inline

◆ release()

template<class X >
X * ACE_Auto_Basic_Ptr< X >::release ( void  )
inline

◆ reset()

template<class X>
void ACE_Auto_Basic_Ptr< X >::reset ( X *  p = 0)
inline

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

template<typename X>
ACE_Auto_Basic_Ptr< X >::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ p_

template<typename X>
X* ACE_Auto_Basic_Ptr< X >::p_
protected

The documentation for this class was generated from the following files: