Index

Package: Queue_Pack_Generic (generic)

Description

generic
   type Element is private;
   Queue_Size : Positive := 10;

package Queue_Pack_Generic is
Uwe R. Zimmer, Australia, 2013

Types

Marker (private)

subtype Marker is Natural range 0 .. Queue_Size - 1;
bounds chosen such that modulo arithmetic can be used

List (private)

type List is array (Marker) of Element;

References:

queue_pack_generic.ads:24:9 (declaration)
queue_pack_generic.ads:28:19 (reference)
bounds chosen such that modulo arithmetic can be used

Constants & Global variables

Queue_Size (Positive)

Queue_Size : Positive := 10;

Queue_overflow

Queue_overflow, Queue_underflow : exception;

Queue_underflow

Queue_underflow : exception;

Subprograms & Entries

Is_Full

function Is_Full  
(Queue: Queue_Type) return Boolean;

Called by:

Enqueue defined at queue_pack_generic.ads:13:14