| Home · All Classes · All Namespaces · Modules · Functions · Files | 
The WeakPtr class holds a weak reference to an object managed by SharedPtr. More...
#include <TelepathyQt/WeakPtr>
| Public Member Functions | |
| WeakPtr () | |
| WeakPtr (T *d) | |
| WeakPtr (const WeakPtr< T > &o) | |
| WeakPtr (const SharedPtr< T > &o) | |
| ~WeakPtr () | |
| bool | isNull () const | 
| bool | operator! () const | 
| operator UnspecifiedBoolType () const | |
| WeakPtr< T > & | operator= (const WeakPtr< T > &o) | 
| WeakPtr< T > & | operator= (const SharedPtr< T > &o) | 
| void | swap (WeakPtr< T > &o) | 
| SharedPtr< T > | toStrongRef () const | 
| Friends | |
| uint | qHash (const WeakPtr< T > &ptr) | 
The WeakPtr class holds a weak reference to an object managed by SharedPtr.
Tp::WeakPtr is useful for example for breaking reference cycles which would result from using a Tp::SharedPtr for both ends of a pair of mutually linked objects to refer to each other.
| 
 | inline | 
| 
 | inlineexplicit | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | friend | 
| Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.7 |