DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 1757 (0x6dd) Types: TextFile Names: »B«
└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13 └─ ⟦124ff5788⟧ »DATA« └─⟦this⟧ └─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦this⟧ └─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16 └─ ⟦6f12a12be⟧ »DATA« └─⟦this⟧ └─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04 └─ ⟦d65440be7⟧ »DATA« └─⟦this⟧ └─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦e24fb53b7⟧ └─⟦this⟧
package body Generic_Condition_Element is type Elements is array (Positive range <>) of Fact_Query; The_Elements : Elements (1 .. Max_Condition_Elements) := (others => Null_Fact_Query); The_Last_Element : Natural := 0; procedure Add (The_Query : Fact_Query; Result : out Id) is begin if The_Last_Element = Max_Condition_Elements then raise Overflow; else The_Last_Element := The_Last_Element + 1; The_Elements (The_Last_Element) := The_Query; Result := The_Last_Element; end if; end Add; procedure Add (The_Queries : Fact_Queries; Result : out Ids) is begin if The_Last_Element + The_Queries'Length > Max_Condition_Elements then raise Overflow; else for I in The_Queries'Range loop The_Last_Element := The_Last_Element + 1; The_Elements (The_Last_Element) := The_Queries (I); Result (I) := The_Last_Element; end loop; end if; end Add; function Count return Natural is begin return The_Last_Element; end Count; function Get (The_Id : Id) return Fact_Query is begin if (The_Id > The_Last_Element) or (The_Id = 0) then raise Illegal_Access; else return The_Elements (The_Id); end if; end Get; function Get (The_Ids : Ids) return Fact_Queries is Result : Fact_Queries (The_Ids'Range); begin for I in The_Ids'Range loop Result (I) := Get (The_Ids (I)); end loop; return Result; end Get; end Generic_Condition_Element;