|
QSDK 1.1 Documentation |
#include <Q/com.h>
Public Member Functions | |
| Ptr () | |
| Ptr (T *p, bool doAddRef=true) | |
| Ptr (const Ptr< T > &p) | |
| ~Ptr () | |
| bool | valid () const |
| operator T * () const | |
| T * | operator-> () const |
| T & | operator * () const |
| T ** | operator & () |
| T *const * | operator & () const |
| Ptr< T > & | operator= (const Ptr< T > &p) |
| Ptr< T > & | operator= (T *p) |
|
|||||||||
|
Create a new smart pointer. The pointer is initialised to zero. |
|
||||||||||||||||
|
Create a new smart pointer with the pointer initialised to p. The reference count of p will be increased by one if the value of doAddRef is |
|
||||||||||
|
Create a new smart pointer with the pointer initialised from p. The reference count of p will be increased by one. |
|
|||||||||
|
Destroy a smart pointer. The reference count of the interface being pointed to (if any) is decreased by one by calling its Unknown::release method. |
|
|||||||||
|
The compiler calls this method automatically when the appropriate language construct is used. This makes the smart pointer behave as if it was a regular pointer. |
|
|||||||||
|
The compiler calls this method automatically when the appropriate language construct is used. This makes the smart pointer behave as if it was a regular pointer. |
|
|||||||||
|
The compiler calls this method automatically when the appropriate language construct is used. This makes the smart pointer behave as if it was a regular pointer. |
|
|||||||||
|
The compiler calls this method automatically when the appropriate language construct is used. This makes the smart pointer behave as if it was a regular pointer. |
|
|||||||||
|
The compiler calls this method automatically when the appropriate language construct is used. This makes the smart pointer behave as if it was a regular pointer. |
|
||||||||||
|
Assign one pointer to another by copying the underlying pointer, adjusting reference counts as appropriate. |
|
||||||||||
|
Assign one pointer to another by copying the underlying pointer, adjusting reference counts as appropriate. |
|
|||||||||
|
Return true if the reference is valid (i.e. if the pointer is non-zero). |
|
|
|
Qube Software Limited © 2000-2004
|
|