OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
my_auto_ptr< X > Class Template Reference

#include <my_auto_ptr.h>

Collaboration diagram for my_auto_ptr< X >:

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

◆ my_auto_ptr() [1/3]

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

Definition at line 31 of file my_auto_ptr.h.

References px.

Referenced by my_auto_ptr(), operator=(), and release().

◆ my_auto_ptr() [2/3]

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

Definition at line 32 of file my_auto_ptr.h.

References px, and X.

◆ my_auto_ptr() [3/3]

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.

References my_auto_ptr(), px, and release().

Here is the call graph for this function:

◆ ~my_auto_ptr()

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

Definition at line 43 of file my_auto_ptr.h.

References px.

Member Function Documentation

◆ get()

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

Definition at line 46 of file my_auto_ptr.h.

References px, and X.

◆ operator*()

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

Definition at line 44 of file my_auto_ptr.h.

References px, and X.

◆ operator->()

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

Definition at line 45 of file my_auto_ptr.h.

References px, and X.

◆ operator=()

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(), px, and release().

Here is the call graph for this function:

◆ release()

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(), px, and X.

Referenced by my_auto_ptr(), and operator=().

Here is the call graph for this function:

Member Data Documentation

◆ px

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

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