BSD style: see
license.txt
Jan 2010: Initial release
wm4, kris
- alias WeakReference!(Object) WeakRef ¶#
-
A generic WeakReference.
- class WeakReference(T : Object) ¶#
-
Implements a Weak reference. The get() method returns null once
the object pointed to has been collected.
- alias get opCall [public] ¶#
-
Alternative get() call.
- this(T obj) ¶#
-
Initializes a weak reference.
- ~this() ¶#
-
Clean up when we are no longer referenced.
- void set(T obj) [final] ¶#
-
Host a different object reference.
- void clear() [final] ¶#
-
Clear the weak reference - get() will always return null.
- T get() [final] ¶#
-
Returns the weak reference - returns null if the object
was deallocated in the meantime.