OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Attributes | List of all members
my_auto_ptr< X > Class Template Reference

#include <my_auto_ptr.h>

Public Member Functions

 my_auto_ptr ()
 
 my_auto_ptr (X *p)
 
 my_auto_ptr (const my_auto_ptr< X > &r)
 
my_auto_ptroperator= (const my_auto_ptr< X > &r)
 
 ~my_auto_ptr ()
 
Xoperator* () const
 
Xoperator-> () const
 
Xget () const
 
Xrelease () const
 

Private Attributes

Xpx
 

Detailed Description

template<class X>
class my_auto_ptr< X >

Definition at line 27 of file my_auto_ptr.h.

Constructor & Destructor Documentation

template<class X>
my_auto_ptr< X >::my_auto_ptr ( )
inline

Definition at line 31 of file my_auto_ptr.h.

template<class X>
my_auto_ptr< X >::my_auto_ptr ( X p)
inline

Definition at line 32 of file my_auto_ptr.h.

template<class X>
my_auto_ptr< X >::my_auto_ptr ( const my_auto_ptr< X > &  r)
inline

Definition at line 33 of file my_auto_ptr.h.

template<class X>
my_auto_ptr< X >::~my_auto_ptr ( )
inline

Definition at line 43 of file my_auto_ptr.h.

References my_auto_ptr< X >::px.

Member Function Documentation

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

Definition at line 46 of file my_auto_ptr.h.

References my_auto_ptr< X >::px.

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

Definition at line 44 of file my_auto_ptr.h.

References my_auto_ptr< X >::px.

template<class X>
X* my_auto_ptr< X >::operator-> ( ) const
inline

Definition at line 45 of file my_auto_ptr.h.

References my_auto_ptr< X >::px.

template<class X>
my_auto_ptr& my_auto_ptr< X >::operator= ( const my_auto_ptr< X > &  r)
inline

Definition at line 34 of file my_auto_ptr.h.

References my_auto_ptr< X >::px, and my_auto_ptr< X >::release().

Here is the call graph for this function:

template<class X>
X* my_auto_ptr< X >::release ( ) const
inline

Definition at line 47 of file my_auto_ptr.h.

References my_auto_ptr< X >::px, and X.

Referenced by my_auto_ptr< X >::operator=().

Member Data Documentation

template<class X>
X* my_auto_ptr< X >::px
private

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