Value:struct WeakRefMaster :
public juce::WeakReference<Class>::Master { ~WeakRefMaster() { this->clear(); } }; \
WeakRefMaster masterReference; \
friend class juce::WeakReference<Class>; \
This class acts as a pointer which will automatically become null if the object to which it points is...
Definition juce_WeakReference.h:90
Macro to easily allow a class to be made weak-referenceable.
This can be inserted in a class definition to add the requisite weak-ref boilerplate to that class. e.g.
class MyObject
{
public:
MyObject();
~MyObject();
private:
};
#define JUCE_DECLARE_WEAK_REFERENCEABLE(Class)
Macro to easily allow a class to be made weak-referenceable.
Definition juce_WeakReference.h:243
- See also
- WeakReference, WeakReference::Master
Referenced by juce::ActionBroadcaster::ActionMessage, juce::ApplicationCommandTarget::CommandMessage, and juce::DropShadower::setOwner().