scoped_ptr< T > Class Template Reference

#include <utility.h>

Collaboration diagram for scoped_ptr< T >:
Collaboration graph
[legend]

Public Member Functions

 scoped_ptr (T *p=0)
 ~scoped_ptr ()
void reset (T *p=0)
T & operator* () const
T * operator-> () const
T * get () const
void swap (scoped_ptr &sp)

Private Member Functions

scoped_ptroperator= (scoped_ptr const &)
 scoped_ptr (scoped_ptr const &)

Private Attributes

T * p_

Detailed Description

template<typename T>
class scoped_ptr< T >

Definition at line 29 of file utility.h.


Constructor & Destructor Documentation

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

Definition at line 31 of file utility.h.

template<typename T>
scoped_ptr< T >::~scoped_ptr (  )  [inline]

Definition at line 32 of file utility.h.

template<typename T>
scoped_ptr< T >::scoped_ptr ( scoped_ptr< T > const &   )  [private]

Member Function Documentation

template<typename T>
T* scoped_ptr< T >::get (  )  const [inline]

Definition at line 43 of file utility.h.

Referenced by profile_t::empty().

Here is the caller graph for this function:

template<typename T>
T& scoped_ptr< T >::operator* (  )  const [inline]

Definition at line 41 of file utility.h.

template<typename T>
T* scoped_ptr< T >::operator-> (  )  const [inline]

Definition at line 42 of file utility.h.

template<typename T>
scoped_ptr& scoped_ptr< T >::operator= ( scoped_ptr< T > const &   )  [private]
template<typename T>
void scoped_ptr< T >::reset ( T *  p = 0  )  [inline]

Definition at line 34 of file utility.h.

template<typename T>
void scoped_ptr< T >::swap ( scoped_ptr< T > &  sp  )  [inline]

Definition at line 45 of file utility.h.


Field Documentation

template<typename T>
T* scoped_ptr< T >::p_ [private]

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

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1