#include <juce_WeakReference.h>
Public Member Functions | |
SharedRef | getSharedPointer (ObjectType *object) |
void | clear () noexcept |
int | getNumActiveWeakReferences () const noexcept |
This class is embedded inside an object to which you want to attach WeakReference pointers. See the WeakReference class notes for an example of how to use this class.
Definition at line 146 of file juce_WeakReference.h.
|
inlinenoexcept |
Definition at line 151 of file juce_WeakReference.h.
|
inlinenoexcept |
The object that owns this master pointer should call this before it gets destroyed, to zero all the references to this object that may be out there. See the WeakReference class notes for an example of how to do this.
Definition at line 180 of file juce_WeakReference.h.
|
inlinenoexcept |
Returns the number of WeakReferences that are out there pointing to this object.
Definition at line 187 of file juce_WeakReference.h.
|
inline |
The first call to this method will create an internal object that is shared by all weak references to the object.
Definition at line 161 of file juce_WeakReference.h.