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

⟦4924660a7⟧ Ada Source

    Length: 9216 (0x2400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Leaf, seg_03b026

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



with Log_Report;
with Oo_Ada_Exception;
with Unchecked_Conversion;
with Unchecked_Deallocation;

package body Leaf is

    type State is
        record
            V : Natural;
            Offspring : Natural := 0;
            Heir : Root.Object;
            Origin : Root.Object;
            Multiple : Root.Object;
        end record;


    procedure Free is new Unchecked_Deallocation (State, Object);


    function Leaf_View_Of is new Unchecked_Conversion
                                    (Source => Root.Object, Target => Object);


    function Root_View_Of is new Unchecked_Conversion
                                    (Source => Object, Target => Root.Object);


    function Create (Offspring : Natural := 0) return Object is separate;


    procedure Delete (This_Object : in out Object;
                      Marker : Boolean := False) is separate;


    procedure Set_V (This_Object : Object; This_V : Natural) is
    begin
        This_Object.V := This_V;
    end Set_V;


    function Get_V (This_Object : Object) return Natural is
    begin
        return This_Object.V;
    end Get_V;
    procedure Image (This_Object : Object) is separate;


    function Protected_Conv (Source : Root.Object) return Object is
    begin
        return Leaf_View_Of (Source);
    end Protected_Conv;


    function Part_Of (This_Origin_Object : Root.Object)
                     return Object is separate;


    procedure Set_Heir (This_Object : in out Object; Heir : Root.Object) is
    begin
        This_Object.Heir := Heir;
    end Set_Heir;


    function Get_Heir (This_Object : Object) return Root.Object is
    begin
        return This_Object.Heir;
    end Get_Heir;


    procedure Set_Origin (This_Object : in out Object; Origin : Root.Object) is
    begin
        This_Object.Origin := Origin;
    end Set_Origin;


    function Get_Origin (This_Object : Object) return Root.Object is
    begin
        return This_Object.Origin;
    end Get_Origin;


    procedure Set_Multiple (This_Object : in out Object;
                            Multiple : Root.Object) is
    begin
        This_Object.Multiple := Multiple;
    end Set_Multiple;


    function Get_Multiple (This_Object : Object) return Root.Object is
    begin
        return This_Object.Multiple;
    end Get_Multiple;

end Leaf;

E3 Meta Data

    nblk1=8
    nid=3
    hdr6=8
        [0x00] rec0=26 rec1=00 rec2=01 rec3=012
        [0x01] rec0=12 rec1=00 rec2=06 rec3=06e
        [0x02] rec0=28 rec1=00 rec2=04 rec3=008
        [0x03] rec0=01 rec1=00 rec2=05 rec3=000
        [0x04] rec0=0a rec1=00 rec2=04 rec3=000
        [0x05] rec0=12 rec1=00 rec2=06 rec3=000
        [0x06] rec0=04 rec1=00 rec2=03 rec3=000
        [0x07] rec0=04 rec1=00 rec2=03 rec3=001
    tail 0x217383d1085126e0da0b3 0x42a00088462060003
Free Block Chain:
  0x3: 0000  00 07 00 04 80 01 29 01 02 03 04 05 06 07 74 29  ┆      )       t)┆
  0x7: 0000  00 08 00 04 80 01 6a 01 5f 4f 62 6a 65 63 74 20  ┆      j _Object ┆
  0x8: 0000  00 02 00 31 80 26 20 20 20 20 20 20 20 20 20 63  ┆   1 &         c┆
  0x2: 0000  00 00 03 fc 80 2c 64 65 6c 65 74 65 20 3a 20 20  ┆     ,delete :  ┆