ACE_Auto_Basic_Array_Ptr< X > Class Template Reference

Implements an extension to the draft C++ standard auto_ptr abstraction. This class allows one to work on non-object (basic) types that must be treated as an array, e.g., deallocated via "delete [] foo". More...

#include <Auto_Ptr.h>

Collaboration diagram for ACE_Auto_Basic_Array_Ptr< X >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef X element_type

Public Member Functions

 ACE_Auto_Basic_Array_Ptr (X *p=0)
 ACE_Auto_Basic_Array_Ptr (ACE_Auto_Basic_Array_Ptr< X > &ap)
ACE_Auto_Basic_Array_Ptr< X > & operator= (ACE_Auto_Basic_Array_Ptr< X > &rhs)
 ~ACE_Auto_Basic_Array_Ptr (void)
X & operator* () const
X & operator[] (int i) const
X * get (void) const
X * release (void)
void reset (X *p=0)
void dump (void) const
 Dump the state of an object.

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.

Protected Attributes

X * p_


Detailed Description

template<typename X>
class ACE_Auto_Basic_Array_Ptr< X >

Implements an extension to the draft C++ standard auto_ptr abstraction. This class allows one to work on non-object (basic) types that must be treated as an array, e.g., deallocated via "delete [] foo".

Member Typedef Documentation

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

Reimplemented in ACE_Auto_Array_Ptr< X >.


Constructor & Destructor Documentation

template<typename X>
ACE_Auto_Basic_Array_Ptr< X >::ACE_Auto_Basic_Array_Ptr ( X *  p = 0  )  [inline, explicit]

template<typename X>
ACE_Auto_Basic_Array_Ptr< X >::ACE_Auto_Basic_Array_Ptr ( ACE_Auto_Basic_Array_Ptr< X > &  ap  ) 

template<typename X>
ACE_Auto_Basic_Array_Ptr< X >::~ACE_Auto_Basic_Array_Ptr ( void   ) 


Member Function Documentation

template<typename X>
void ACE_Auto_Basic_Array_Ptr< X >::dump ( void   )  const

Dump the state of an object.

template<typename X>
X* ACE_Auto_Basic_Array_Ptr< X >::get ( void   )  const

template<typename X>
X& ACE_Auto_Basic_Array_Ptr< X >::operator* (  )  const

template<typename X>
ACE_Auto_Basic_Array_Ptr<X>& ACE_Auto_Basic_Array_Ptr< X >::operator= ( ACE_Auto_Basic_Array_Ptr< X > &  rhs  ) 

template<typename X>
X& ACE_Auto_Basic_Array_Ptr< X >::operator[] ( int  i  )  const

template<typename X>
X* ACE_Auto_Basic_Array_Ptr< X >::release ( void   ) 

template<typename X>
void ACE_Auto_Basic_Array_Ptr< X >::reset ( X *  p = 0  ) 


Member Data Documentation

Declare the dynamic allocation hooks.

template<typename X>
X* ACE_Auto_Basic_Array_Ptr< X >::p_ [protected]


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

Generated on Mon Jul 13 16:11:09 2009 for ACE by  doxygen 1.5.8