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