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

⟦fb61da9e0⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Binary_Predicate, seg_03b951, seg_03c0cf, seg_03c53a, separate Generic_Predicate

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



separate (Generic_Predicate)
package body Binary_Predicate is
    function Make (The_Operator : System_Defined.Operators;
                   The_Operand  : Expression_Object) return Object is
    begin
        return Object'(Owner               => System,
                       The_System_Operator => The_Operator,
                       The_Operand         => The_Operand);
    end Make;


    function Make (The_Operator : User_Defined_Operators;
                   The_Operand  : Expression_Object) return Object is
    begin
        return Object'(Owner             => User,
                       The_User_Operator => The_Operator,
                       The_Operand       => The_Operand);
    end Make;


    function Is_A_Is_Equal (What : Object) return Boolean is
        use System_Defined;
    begin
        return What.The_System_Operator = System_Defined.Is_Equal;
    end Is_A_Is_Equal;


    function Is_A_Is_Different (What : Object) return Boolean is
        use System_Defined;
    begin
        return What.The_System_Operator = System_Defined.Is_Different;
    end Is_A_Is_Different;


    function Get (From_Object : Object) return Expression_Object is
    begin
        return From_Object.The_Operand;
    end Get;



    procedure Put (The_Object : Object; Where : Output_Stream.Object) is
        use Output_Stream;
    begin
        case The_Object.Owner is
            when System =>
                Put (System_Defined.Image (The_Object.The_System_Operator),
                     Where);
            when User =>
                Put (User_Defined_Image (The_Object.The_User_Operator), Where);
        end case;
        Put ("(", Where);
        Put (The_Object.The_Operand, Where);
        Put (")", Where);
    end Put;


    function Match (Value : Slot.Object; Against : Object) return Boolean is
        The_Operand : constant Slot.Object := Evaluate (Against.The_Operand);
    begin
        case Against.Owner is
            when System =>
                return System_Defined.Match
                          (Against.The_System_Operator, Value, The_Operand);
            when User =>
                return User_Defined_Binary_Match
                          (Against.The_User_Operator, Value, The_Operand);
        end case;

    end Match;
end Binary_Predicate;


E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=1d rec1=00 rec2=01 rec3=072
        [0x01] rec0=10 rec1=00 rec2=03 rec3=004
        [0x02] rec0=1d rec1=00 rec2=02 rec3=000
    tail 0x21738dc4e85267ac143f8 0x42a00088462063c03