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

⟦8713a4519⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Generic_String_Sort_Array, seg_04112c

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;
    Null_Element : Element;
    with function Get_Key (Item : Element) return String;
    with procedure Element_Image (Item : Element);
package Generic_String_Sort_Array is

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

    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 : out Element;
                   Key : in String;
                   Found : out Boolean);
    procedure Get (Collection : in Object;
                   Item : out Element;
                   Key : in Element_Index;
                   Found : out Boolean);
    procedure Image (Collection : in Object);
    function Is_Empty (Collection : in Object) return Boolean;
    function Index (Collection : in Object; Key : in String)
                   return Element_Index;

    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);

    Null_Object : constant Object;
private

    type Unconstraint_Array is array (Element_Index range <>) of Element;

    Null_Unconstraint_Array : constant Unconstraint_Array (1 .. 0) :=
       (others => Null_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 := Null_Object;
            Index : Element_Index := 0;
        end record;

    Null_Object : constant Object :=
       (The_Array => (Length => 0, Inner => Null_Unconstraint_Array));
end Generic_String_Sort_Array;

E3 Meta Data

    nblk1=4
    nid=3
    hdr6=6
        [0x00] rec0=1a rec1=00 rec2=01 rec3=068
        [0x01] rec0=1f rec1=00 rec2=04 rec3=05c
        [0x02] rec0=07 rec1=00 rec2=02 rec3=000
        [0x03] rec0=03 rec1=f5 rec2=2f rec3=142
    tail 0x2174150dc86133d7c1853 0x42a00088462060003
Free Block Chain:
  0x3: 0000  00 00 00 ab 80 01 3b 01 00 00 00 00 24 20 20 20  ┆      ;     $   ┆