IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
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 ()
X & operator* () const
X * operator-> () const
X * get () const
X * release () const

Private Attributes

X * px

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().

Here is the caller graph for this function:

◆ my_auto_ptr() [2/3]

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

Definition at line 33 of file my_auto_ptr.h.

References px.

◆ 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 35 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 44 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 47 of file my_auto_ptr.h.

References px.

◆ operator*()

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

Definition at line 45 of file my_auto_ptr.h.

References px.

◆ operator->()

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

Definition at line 46 of file my_auto_ptr.h.

References px.

◆ operator=()

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

Definition at line 37 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 48 of file my_auto_ptr.h.

References my_auto_ptr(), and px.

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

Here is the call graph for this function:
Here is the caller 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: