Back to index

salome-med  6.5.0
Public Member Functions | Private Member Functions | Private Attributes
INTERP_KERNEL::AutoPtr< T > Class Template Reference

#include <InterpKernelAutoPtr.hxx>

List of all members.

Public Member Functions

 AutoPtr (T *ptr=0)
 ~AutoPtr ()
AutoPtroperator= (T *ptr)
T * operator-> ()
const T * operator-> () const
T & operator* ()
const T & operator* () const
 operator T * ()
 operator const T * () const

Private Member Functions

void destroyPtr ()

Private Attributes

T * _ptr

Detailed Description

template<class T>
class INTERP_KERNEL::AutoPtr< T >

Definition at line 26 of file InterpKernelAutoPtr.hxx.


Constructor & Destructor Documentation

template<class T>
INTERP_KERNEL::AutoPtr< T >::AutoPtr ( T *  ptr = 0) [inline]

Definition at line 29 of file InterpKernelAutoPtr.hxx.

:_ptr(ptr) {  }
template<class T>
INTERP_KERNEL::AutoPtr< T >::~AutoPtr ( ) [inline]

Definition at line 30 of file InterpKernelAutoPtr.hxx.

{ destroyPtr(); }

Here is the call graph for this function:


Member Function Documentation

template<class T>
void INTERP_KERNEL::AutoPtr< T >::destroyPtr ( ) [inline, private]

Definition at line 39 of file InterpKernelAutoPtr.hxx.

{ delete [] _ptr; }

Here is the caller graph for this function:

template<class T>
INTERP_KERNEL::AutoPtr< T >::operator const T * ( ) const [inline]

Definition at line 37 of file InterpKernelAutoPtr.hxx.

{ return _ptr; }
template<class T>
INTERP_KERNEL::AutoPtr< T >::operator T * ( ) [inline]

Definition at line 36 of file InterpKernelAutoPtr.hxx.

{ return _ptr; }
template<class T>
T& INTERP_KERNEL::AutoPtr< T >::operator* ( ) [inline]

Definition at line 34 of file InterpKernelAutoPtr.hxx.

{ return *_ptr; }
template<class T>
const T& INTERP_KERNEL::AutoPtr< T >::operator* ( ) const [inline]

Definition at line 35 of file InterpKernelAutoPtr.hxx.

{ return *_ptr; }
template<class T>
T* INTERP_KERNEL::AutoPtr< T >::operator-> ( ) [inline]

Definition at line 32 of file InterpKernelAutoPtr.hxx.

{ return _ptr ; }
template<class T>
const T* INTERP_KERNEL::AutoPtr< T >::operator-> ( ) const [inline]

Definition at line 33 of file InterpKernelAutoPtr.hxx.

{ return _ptr; }
template<class T>
AutoPtr& INTERP_KERNEL::AutoPtr< T >::operator= ( T *  ptr) [inline]

Definition at line 31 of file InterpKernelAutoPtr.hxx.

{ destroyPtr(); _ptr=ptr; return *this; }

Here is the call graph for this function:


Member Data Documentation

template<class T>
T* INTERP_KERNEL::AutoPtr< T >::_ptr [private]

Definition at line 41 of file InterpKernelAutoPtr.hxx.


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