... <- FixedList <- ObjectList <- Collection <- Set <- Dictionary |
|
|
AddToDictionary Clear EachKeyAndValue GetFromDictionary Include KeyAndValueAt MakeValid SafeDrop SafeGet |
Class Dictionary defines no new attributes.
Fields
| Field | Type | |
|---|---|---|
| Dictionary: | values: | ObjectList |
instance Dictionary tag; values: nilObject; end instance;
Define Class Dictionary; inherits from Set; field values: ObjectList; /* Here's the Telescript interface for Dictionary */ overrides Include, Clear; operation AddToDictionary(key: Object; value: Object), safe; operation GetFromDictionary(key: Object): Object, noFail; /* Magic Cap added value */ operation SafeGet(key: Object): Object, noFail; operation SafeDrop(key: Object): Object, noFail; operation KeyAndValueAt(index: Unsigned; var key: Object; var value: Object); operation EachKeyAndValue(function: EachKeyAndValueFunction; parameters: Pointer): Object, noFail; overrides MakeValid; end class;