DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦45a2db6c4⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Generic_String_Sort_Array, seg_040525

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



generic
    type Element is private;
    Max_Element_Number : Natural := 100;
    with function Get_Key (Item : Element) return String;
package Generic_String_Sort_Array is

    type Object is private;
    subtype Element_Index is Natural range 0 .. Max_Element_Number;

    function Is_Empty (Collection : in Object) return Boolean;
    function Index (Collection : in Object; Key : in String)
                   return Element_Index;
    procedure Put (Collection : in out Object;
                   Item : in Element;
                   Found : out Boolean);
    procedure Put (Collection : in out Object; Item : in Element);
    procedure Get (Collection : in Object;
                   Item : in out Element;
                   Key : in String;
                   Found : out Boolean);
    procedure Get (Collection : in Object;
                   Item : in out Element;
                   Key : in Element_Index;
                   Found : out Boolean);

    type Iterator is private;

    procedure Create (Collection : in Object; An_Iterator : in out Iterator);
    function Is_At_End (An_Iterator : in Iterator) return Boolean;
    function Value (An_Iterator : in Iterator) return Element;
    procedure Next (An_Iterator : in out Iterator);

private

    type Unconstraint_Array is array (Element_Index range <>) of Element;
    type Variable_Array (Length : Element_Index := 0) is
        record
            Inner : Unconstraint_Array (1 .. Length);
        end record;

    type Object is
        record
            The_Array : Variable_Array;  
        end record;

    type Iterator is
        record
            Collection : Object;
            Index : Element_Index;
        end record;
end Generic_String_Sort_Array;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1b rec1=00 rec2=01 rec3=006
        [0x01] rec0=1a rec1=00 rec2=02 rec3=001
    tail 0x217407f72860e6e69487e 0x42a00088462060003