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

⟦d3cffc2c7⟧ Ada Source

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

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 
└─⟦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 : Positive := 100;
    Null_Element : Element;
    with procedure Show_Element (Item : Element);
    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;

    procedure Put (Collection : in out Object;
                   Item : in Element;
                   Ok : out Boolean);
    procedure Put (Collection : in out Object; Item : in Element);

    procedure Get (Collection : in Object;
                   Item : out Element;
                   Key : in String;
                   Ok : out Boolean);
    procedure Get (Collection : in Object;
                   Item : out Element;
                   Key : in Element_Index;
                   Ok : out Boolean);
    procedure Show (Collection : in Object);

    function Is_Full (Collection : in Object) return Boolean;
    function Is_Empty (Collection : in Object) return Boolean;
    function Index (Collection : in Object; Key : in String)
                   return Element_Index;
    function Belong (Collection : in Object; Key : in String) return Boolean;
    function Number_Of (Collection : in Object) return Element_Index;

    type Iterator is private;

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

    Null_Iterator : constant 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
            Object : Variable_Array;  
        end record;

    type Iterator is
        record
            Collection : Object := Null_Object;
            Index : Element_Index := 0;
        end record;

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

    Null_Iterator : constant Iterator :=
       (Collection => Null_Object, Index => 0);

end Generic_String_Sort_Array;

E3 Meta Data

    nblk1=4
    nid=4
    hdr6=6
        [0x00] rec0=1c rec1=00 rec2=01 rec3=06c
        [0x01] rec0=19 rec1=00 rec2=03 rec3=034
        [0x02] rec0=15 rec1=00 rec2=02 rec3=000
        [0x03] rec0=19 rec1=00 rec2=03 rec3=000
    tail 0x2174d9b8e865b70976d82 0x42a00088462060003
Free Block Chain:
  0x4: 0000  00 00 01 f2 80 0b 65 20 4f 62 6a 65 63 74 20 69  ┆      e Object i┆