8.27. File tom/Dictionary

class tom.DictionaryContainer

A DictionaryContainer is a class which can be inherited by Dictionary-like objects, to allow them to be a container, with respect to their value objects. It is a seperate class, for inheritance by the PointerDictionary class.

inherits

State supers: Container

instance tom.DictionaryContainer

class tom.ObjectDictionary

An ObjectDictionary is a Dictionary mapping objects to objects. It is the superclass of Dictionary and EqDictionary. The latter hash the key objects on their address, and uses pointer equivalence.

inherits

State supers: HashTable, Mapped, DictionaryContainer

instance tom.ObjectDictionary

methods


void
  doKeys Block block;

Evaluate the block for each key.


Enumerator
  enumerator;

Return a valueEnumerator.


Any
  member All object;

Invoke HashTable's implementation.


Any
  memq All object;

Invoke HashTable's implementation.


Enumerator
  keyEnumerator;

Return an enumerator on the keys of this dictionary.


DictionaryEnumerator
  valueEnumerator;

Return an enumerator on the values of this dictionary.


OutputStream
  write OutputStream s;

Undocumented.

class tom.Dictionary

inherits

State supers: ObjectDictionary

instance tom.Dictionary

class tom.MutableDictionary

inherits

State supers: Dictionary, MutableHashTable, MutableMapped

instance tom.MutableDictionary

methods


void
  remove All key;

Remove the mapping for the key.


void
  add All object;

Undocumented.


void
  set All value
   at All key
pre
  value != nil && key != nil;

Undocumented.

class tom.DictionaryEnumerator

inherits

State supers: HashTableEnumerator, MapEnumerator

instance tom.DictionaryEnumerator

variables

redeclare BucketDictElement elt;

methods


(boolean, Any, Any) (valid, k, v)
  next;

Undocumented.

class tom.DictionaryValueEnumerator

inherits

State supers: DictionaryEnumerator

instance tom.DictionaryValueEnumerator

methods


(boolean, Any) (valid, object)
  next;

Undocumented.