GL Studio C++ Runtime API
WeakReference Class Referenceabstract

#include <weak_reference.h>

Public Member Functions

virtual WeakReferenceableGetReferent () const =0
virtual void NotifyReferentDestroyed ()=0

Detailed Description

Interface for holding a weak reference to an object. This class should generally not be used directly. Use WeakRef instead

Member Function Documentation

virtual WeakReferenceable* GetReferent ( ) const
pure virtual

Get a pointer to the object. Returns NULL if the object was deleted

virtual void NotifyReferentDestroyed ( )
pure virtual

Notify this weak reference that the object destroyed

The documentation for this class was generated from the following file: