Pointer that deletes the owned object when going out of scope. More...
#include <libppbase/base/AutoPtr.h>
Public Member Functions | |
| AutoPtr (T *obj=0) | |
| Creates an object that owns the pointer. | |
| template<class U > | |
| AutoPtr (AutoPtr< U > &src) | |
| Get the pointer and ownership from src. | |
| ~AutoPtr () | |
| Destroys the owned object. | |
| T * | get () |
| Release ownership. | |
| bool | isOwner () const |
| Gets ownership information. | |
| AutoPtr & | operator= (T *obj) |
| Assignment from a pointer. | |
| template<class U > | |
| AutoPtr & | operator= (AutoPtr< U > &src) |
| Assignment from another auto pointer. | |
| T & | operator* () const |
| Dereferencing operator. | |
| T * | operator-> () const |
| Pointer operator. | |
Pointer that deletes the owned object when going out of scope.
1.7.1