Back: WeakIdentitySet-accessing Up: Base classes Forward: WeakKeyDictionary class-hacks   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.214 WeakKeyDictionary

Defined in namespace Smalltalk
Superclass: Dictionary
Category: Collections-Weak

I am similar to a plain Dictionary, but my keys are stored in a weak array; I track which of them are garbage collected and, as soon as I encounter one of them, I swiftly remove all the associations for the garbage collected keys

1.214.1 WeakKeyDictionary class: hacks  (class)
1.214.2 WeakKeyDictionary: accessing  (instance)


1.214.1 WeakKeyDictionary class: hacks

postLoad
Called after loading an object; must restore it to the state before `preStore' was called. Make it weak again


1.214.2 WeakKeyDictionary: accessing

add: anAssociation
Store value as associated to the given key.

at: key put: value
Store value as associated to the given key.



Back: WeakKeyDictionary class-hacks Up: WeakKeyDictionary Forward: WeakKeyIdentityDictionary   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on July, 23 2009 using texi2html