|
|
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 - metrics - downloadIndex: T V
Length: 961 (0x3c1)
Types: TextFile
Names: »V«
└─⟦5829e5ed5⟧ Bits:30000534 8mm tape, Rational 1000, RCI 2_0_5
└─⟦c9a165082⟧ »DATA«
└─⟦2162db02b⟧
└─⟦this⟧
generic
type Element is private;
pragma Must_Be_Constrained (Yes => Element);
package Stack_Generic is
type Stack is private;
Empty_Stack : constant Stack;
-- It is expected that a declared stack is initialized to Empty_Stack
procedure Make_Empty (S : in out Stack);
procedure Pop (S : in out Stack);
procedure Push (X : Element; S : in out Stack);
function Empty (S : Stack) return Boolean;
function Top (S : Stack) return Element;
procedure Copy (Target : in out Stack; Source : Stack);
Underflow : exception;
type Iterator is private;
procedure Init (Iter : out Iterator; S : Stack);
procedure Next (Iter : in out Iterator);
function Value (Iter : Iterator) return Element;
function Done (Iter : Iterator) return Boolean;
private
type Stack_Node;
type Stack is access Stack_Node;
Empty_Stack : constant Stack := null;
type Iterator is new Stack;
end Stack_Generic;