#include <own_ptr.h>
Public Types | |
typedef X | element_type |
Public Member Functions | |
X * | get () const |
X & | operator* () const |
X * | operator-> () const |
template<class T , typename Q > | |
own_ptr & | operator= (const own_ptr< T, Q > &a) |
own_ptr & | operator= (const own_ptr &a) |
own_ptr (const own_ptr &a) | |
own_ptr (X *p=0) | |
template<class T , typename Q > | |
own_ptr (const own_ptr< T, Q > &a) | |
X * | release () const |
void | reset (X *p=0) |
~own_ptr () | |
Private Attributes | |
X * | ptr |
a pointer which "owns" the pointed object
typedef X own_ptr< X, P >::element_type |
X* own_ptr< X, P >::get | ( | void | ) | const [inline] |
Definition at line 83 of file own_ptr.h.
Referenced by FileInPath::FileInPath(), FileInPath::operator()(), FileInPath::operator=(), and own_ptr< std::ifstream >::operator=().
{ return ptr; }
X& own_ptr< X, P >::operator* | ( | void | ) | const [inline] |
X* own_ptr< X, P >::operator-> | ( | ) | const [inline] |
X* own_ptr< X, P >::release | ( | ) | const [inline] |
Definition at line 85 of file own_ptr.h.
Referenced by FileInPath::init(), and own_ptr< std::ifstream >::operator=().
{ return P::copy(const_cast<own_ptr<X,P>*>(this)->ptr); }
void own_ptr< X, P >::reset | ( | X * | p = 0 | ) | [inline] |
Definition at line 41 of file own_ptr.h.
Referenced by own_ptr< std::ifstream >::get(), own_ptr< std::ifstream >::operator*(), own_ptr< std::ifstream >::operator->(), own_ptr< std::ifstream >::operator=(), own_ptr< std::ifstream >::release(), own_ptr< std::ifstream >::reset(), and own_ptr< std::ifstream >::~own_ptr().