This class is embedded inside an object to which you want to attach WeakReference pointers.
More...
#include <juce_WeakReference.h>
|
| Master () noexcept |
|
| ~Master () noexcept |
|
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...
|
|
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...
|
|
template<class ObjectType, class ReferenceCountingType = ReferenceCountedObject>
class WeakReference< ObjectType, ReferenceCountingType >::Master
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.
- See also
- WeakReference
◆ Master()
template<class ObjectType, class ReferenceCountingType = ReferenceCountedObject>
◆ ~Master()
template<class ObjectType, class ReferenceCountingType = ReferenceCountedObject>
◆ clear()
template<class ObjectType, class ReferenceCountingType = ReferenceCountedObject>
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.
◆ getSharedPointer()
template<class ObjectType, class ReferenceCountingType = ReferenceCountedObject>
◆ sharedPointer
template<class ObjectType, class ReferenceCountingType = ReferenceCountedObject>
The documentation for this class was generated from the following file: