JUCE
|
This class is embedded inside an object to which you want to attach WeakReference pointers. More...
Public Member Functions | |
Master () noexcept | |
~Master () noexcept | |
SharedPointer * | getSharedPointer (ObjectType *const object) |
The first call to this method will create an internal object that is shared by all weak references to the object. More... | |
void | clear () noexcept |
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. More... | |
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.
|
noexcept |
|
noexcept |
References jassert.
SharedPointer* WeakReference< ObjectType, ReferenceCountingType >::Master::getSharedPointer | ( | ObjectType *const | object | ) |
The first call to this method will create an internal object that is shared by all weak references to the object.
References jassert, and WeakReference< ObjectType, ReferenceCountingType >::SharedPointer::SharedPointer().
|
noexcept |
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.
References JUCE_DECLARE_NON_COPYABLE.