#include <DocumentObserver.h>
Public Member Functions | |
bool | expired () const |
expired More... | |
T * | get () const noexcept |
bool | operator!= (const WeakPtrT< T > &p) const |
operator != More... | |
T * | operator* () const |
operator -> More... | |
T * | operator-> () const |
operator -> More... | |
WeakPtrT< T > & | operator= (T *p) |
operator = Assignment operator More... | |
bool | operator== (const WeakPtrT< T > &p) const |
operator == More... | |
void | reset () |
reset Releases the reference to the managed object. After the call *this manages no object. More... | |
WeakPtrT (T *t) | |
~WeakPtrT () | |
The WeakPtrT class.
App::WeakPtrT< T >::WeakPtrT | ( | T * | t | ) |
App::WeakPtrT< T >::~WeakPtrT | ( | ) |
bool App::WeakPtrT< T >::expired | ( | ) | const |
expired
|
noexcept |
Get a pointer to the object or 0 if it doesn't exist any more.
Referenced by draftguitools.gui_trackers.editTracker::move().
bool App::WeakPtrT< T >::operator!= | ( | const WeakPtrT< T > & | p | ) | const |
operator !=
T * App::WeakPtrT< T >::operator* | ( | ) | const |
operator ->
T * App::WeakPtrT< T >::operator-> | ( | ) | const |
operator ->
WeakPtrT< T > & App::WeakPtrT< T >::operator= | ( | T * | p | ) |
operator = Assignment operator
bool App::WeakPtrT< T >::operator== | ( | const WeakPtrT< T > & | p | ) | const |
operator ==
void App::WeakPtrT< T >::reset | ( | ) |
reset Releases the reference to the managed object. After the call *this manages no object.
Referenced by draftguitools.gui_trackers.gridTracker::set().