Index

Package: Queue_Pack_Exceptions

Description

package Queue_Pack_Exceptions is
Uwe R. Zimmer, Australia, 2013

Types

List

type List is array (Marker) of Element;

References:

queue_pack_exceptions.ads:10:9 (declaration)
queue_pack_exceptions.ads:14:19 (reference)

Queue_Type

type Queue_Type is record
      Top, Free : Marker  := Marker'First;
      Is_Empty  : Boolean := True;
      Elements  : List;
   end record;

Constants & Global variables

Queue_Size (Positive)

Queue_Size : constant 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 is (not Queue.Is_Empty and then Queue.Top = Queue.Free);