The WeakPtr class holds a weak reference to an object managed by SharedPtr.
More...
#include <TelepathyQt/WeakPtr>
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.
See Shared Pointer Usage
◆ WeakPtr() [1/4]
◆ WeakPtr() [2/4]
Tp::WeakPtr::WeakPtr |
( |
T * |
d | ) |
|
|
inlineexplicit |
◆ WeakPtr() [3/4]
Tp::WeakPtr::WeakPtr |
( |
const WeakPtr< T > & |
o | ) |
|
|
inline |
◆ WeakPtr() [4/4]
Tp::WeakPtr::WeakPtr |
( |
const SharedPtr< T > & |
o | ) |
|
|
inline |
◆ ~WeakPtr()
Tp::WeakPtr::~WeakPtr |
( |
| ) |
|
|
inline |
◆ isNull()
bool Tp::WeakPtr::isNull |
( |
| ) |
const |
|
inline |
◆ operator!()
bool Tp::WeakPtr::operator! |
( |
| ) |
const |
|
inline |
◆ operator UnspecifiedBoolType()
Tp::WeakPtr::operator UnspecifiedBoolType |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ swap()
void Tp::WeakPtr::swap |
( |
WeakPtr< T > & |
o | ) |
|
|
inline |
◆ toStrongRef()
SharedPtr<T> Tp::WeakPtr::toStrongRef |
( |
| ) |
const |
|
inline |