Public Member Functions

base::AutoPtr< T > Class Template Reference

Pointer that deletes the owned object when going out of scope. More...

#include <libppbase/base/AutoPtr.h>

List of all members.

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.
AutoPtroperator= (T *obj)
 Assignment from a pointer.
template<class U >
AutoPtroperator= (AutoPtr< U > &src)
 Assignment from another auto pointer.
T & operator* () const
 Dereferencing operator.
T * operator-> () const
 Pointer operator.

Detailed Description

template<class T>
class base::AutoPtr< T >

Pointer that deletes the owned object when going out of scope.

Author:
Christoph Schwarz
Version:
$Id: AutoPtr.h 3 2010-08-07 08:19:10Z cschwarz1 $

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