ALBA
Public Member Functions | List of all members
albaSmartPointer< T > Class Template Reference

#include <albaSmartPointer.h>

Inheritance diagram for albaSmartPointer< T >:
Inheritance graph
[legend]
Collaboration diagram for albaSmartPointer< T >:
Collaboration graph
[legend]

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 ()
 
albaAutoPointeroperator= (T *r)
 
albaAutoPointeroperator= (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
 

Detailed Description

template<class T>
class albaSmartPointer< T >

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.

Constructor & Destructor Documentation

◆ albaSmartPointer() [1/3]

template<class T >
albaSmartPointer< T >::albaSmartPointer ( )
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().

Here is the call graph for this function:

◆ albaSmartPointer() [2/3]

template<class T >
albaSmartPointer< T >::albaSmartPointer ( T *  r)
inline

Initialize smart pointer to given object pointer and reference the given object.

Definition at line 120 of file albaSmartPointer.h.

◆ albaSmartPointer() [3/3]

template<class T >
albaSmartPointer< T >::albaSmartPointer ( const albaAutoPointer< T > &  r)
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.


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