LibreOffice Module tools (master) 1
|
derive your implementation classes from this class if you want them to support weak references More...
#include <weakbase.h>
Public Member Functions | |
WeakBase () | |
virtual | ~WeakBase () |
void | clearWeak () |
clears the reference pointer in all living weak references for this instance. More... | |
Private Member Functions | |
WeakConnection * | getWeakConnection () |
Private Attributes | |
rtl::Reference< WeakConnection > | mpWeakConnection |
Friends | |
template<typename T > | |
class | WeakReference |
derive your implementation classes from this class if you want them to support weak references
Definition at line 135 of file weakbase.h.
|
inline |
Definition at line 140 of file weakbase.h.
|
virtual |
Definition at line 25 of file ref.cxx.
References mpWeakConnection.
|
inline |
clears the reference pointer in all living weak references for this instance.
Further created weak references will also be invalid. You should call this method in the d'tor of your derived classes for an early invalidate of all living weak references while your object is already inside it d'tor.
Definition at line 145 of file weakbase.hxx.
References mpWeakConnection.
|
inlineprivate |
Definition at line 151 of file weakbase.hxx.
References mpWeakConnection.
|
friend |
Definition at line 137 of file weakbase.h.
|
private |
Definition at line 152 of file weakbase.h.
Referenced by clearWeak(), getWeakConnection(), and ~WeakBase().