#include <utility.h>
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_ptr & | operator= (scoped_ptr const &) |
scoped_ptr (scoped_ptr const &) | |
Private Attributes | |
T * | p_ |
Definition at line 29 of file utility.h.
scoped_ptr< T >::scoped_ptr | ( | T * | p = 0 |
) | [inline, explicit] |
scoped_ptr< T >::~scoped_ptr | ( | ) | [inline] |
scoped_ptr< T >::scoped_ptr | ( | scoped_ptr< T > const & | ) | [private] |
T* scoped_ptr< T >::get | ( | ) | const [inline] |
Definition at line 43 of file utility.h.
Referenced by profile_t::empty().
T& scoped_ptr< T >::operator* | ( | ) | const [inline] |
T* scoped_ptr< T >::operator-> | ( | ) | const [inline] |
scoped_ptr& scoped_ptr< T >::operator= | ( | scoped_ptr< T > const & | ) | [private] |
void scoped_ptr< T >::reset | ( | T * | p = 0 |
) | [inline] |
void scoped_ptr< T >::swap | ( | scoped_ptr< T > & | sp | ) | [inline] |
T* scoped_ptr< T >::p_ [private] |
Definition at line 54 of file utility.h.
Referenced by scoped_ptr< sample_container >::get(), scoped_ptr< sample_container >::operator*(), scoped_ptr< sample_container >::operator->(), scoped_ptr< sample_container >::reset(), scoped_ptr< sample_container >::swap(), and scoped_ptr< sample_container >::~scoped_ptr().