[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

Dictionary

inherits from Set

... <- FixedList <- ObjectList <- Collection <- Set <- Dictionary



Operations

Get list of all operations

AddToDictionary
Clear
EachKeyAndValue
GetFromDictionary
Include
KeyAndValueAt
MakeValid
SafeDrop
SafeGet


Attributes

Get list of all attributes

Class Dictionary defines no new attributes.


Fields

Field Type
Dictionary: values: ObjectList


Instance template

instance Dictionary tag;
         values: nilObject;
end instance;

Class definition

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;