#include <WeakReference.h>
Inheritance diagram for acdk::lang::ref::WeakReference:
if no other Reference hold this object : The referenced Object will be destroyed or a ReferenceQueue is given. If a ReferenceQueue is given, the the queue owns the reference. The reference can be cleared by calling poll() or remove(). If the ReferenceQueue itself will be destroyed all References held by this ReferenceQueue will also be destroyed. WeakReferences, which are hold by the ReferenceQueue still are reachable through the WeakReferences instance.
Public Member Functions | |
WeakReference (IN(RObject) ref, IN(RReferenceQueue) queue=Nil) | |
~WeakReference () | |
virtual RObject | get () |
virtual bool | notifyBeforeDestruction (Object *obj) |
called if RefCount == 0. |
|
|
|
|
|
Reimplemented from acdk::lang::ref::Reference. |
|
called if RefCount == 0.
Reimplemented from acdk::lang::ref::Reference. |