Index

Package: Queue_Pack_Contract

Description

package Queue_Pack_Contract is
Uwe R. Zimmer, Australia, 2013

Types

List (private)

type List is array (Marker) of Element;

References:

queue_pack_contract.ads:32:9 (declaration)
queue_pack_contract.ads:36:19 (reference)

Constants & Global variables

Queue_Size (Positive)

Queue_Size : constant Positive := 10;

Subprograms & Entries

Enqueue

procedure Enqueue 
(Item: Element;
Q: in out Queue_Type) with Pre => not Is_Full (Q), Post => not Is_Empty (Q) and then Length (Q) = Length (Q'Old) + 1 and then Lookahead (Q, Length (Q)) = Item and then (for all ix in 1 .. Length (Q'Old) => Lookahead (Q, ix) = Lookahead (Q'Old, ix));