ALBA
|
#include <albaSmartPointer.h>
Public Member Functions | |
albaSmartPointer () | |
albaSmartPointer (T *r) | |
albaSmartPointer (const albaAutoPointer< T > &r) | |
Public Member Functions inherited from albaAutoPointer< T > | |
albaAutoPointer (T *r=NULL, void *owner=NULL) | |
albaAutoPointer (const albaAutoPointer &r) | |
~albaAutoPointer () | |
albaAutoPointer & | operator= (T *r) |
albaAutoPointer & | operator= (const albaAutoPointer< T > &r) |
bool | operator== (const albaAutoPointer< T > &r) const |
bool | operator== (const T *r) const |
T * | GetPointer () const |
operator T* () const | |
T * | operator-> () const |
void | UnRegister (void *owner) |
Additional Inherited Members | |
Protected Member Functions inherited from albaAutoPointer< T > | |
void | Swap (albaAutoPointer &r) |
void | Register (void *owner) |
Protected Attributes inherited from albaAutoPointer< T > | |
T * | m_Object |
AutoPointer which self allocates the internal object.
albaSmartPointer is a specialization of albaAutoPointer which automatically instantiate an object in the default constructor.
Definition at line 111 of file albaSmartPointer.h.
|
inline |
Initialize smart pointer to a new instance of class T.
Definition at line 116 of file albaSmartPointer.h.
References albaAutoPointer< T >::m_Object, and albaAutoPointer< T >::Register().
|
inline |
Initialize smart pointer to given object pointer and reference the given object.
Definition at line 120 of file albaSmartPointer.h.
|
inline |
Initialize smart pointer with a new reference to the same object referenced by given smart pointer.
Definition at line 125 of file albaSmartPointer.h.