GPL_CircularQueue

GPL_CircularQueue

gpl

1998 12-05


CLASS

GPL_CircularQueue - C++ circular queue template


SYNOPSIS

GPL_CircularQueue<data_type> cqueue(block_size);


Class GPL_CircularQueue is a C++ template for a circular queue. This container type can be used as a general circular queue, a FIFO, or a stack depending on which member functions are used.


GPL_CircularQueue is dynamic in that its allocated size adapts to the number of elements in the queue. The grain size of the dynamic memory management is specified by the constructor argument block_size. In other words, space is allocated and deallocated in blocks of size block_size * sizeof(data_type *). This class does not automatically allocate space for the data_type object themselves, just for the pointers.


CONSTRUCTOR


MEMBER FUNCTIONS