Class Queue

Class Queue

Placement in the overall structure

Module
object
Base classes
None
Derived classes
None
Time of creation
Specification of Task 3
Files
queue.h queue.cc

Description

Implementation of a singly-linked list of Chain objects. Initially, the queue is empty.

Public methods

Queue ()
initializes the list as an empty list
void enqueue (Chain* item)
inserts a new item at the end of the list.
Chain* dequeue()
returns the first element of the list and removes it.
void remove (Chain* item)
removes item from the list.