|
Embedded Template Library
1.0
|
#include <queue_base.h>
Public Types | |
| typedef size_t | size_type |
| The type used for determining the size of queue. | |
Public Member Functions | |
| size_type | size () const |
| Returns the current number of items in the queue. | |
| size_type | capacity () const |
| Returns the maximum number of items that can be queued. | |
| size_type | max_size () const |
| Returns the maximum number of items that can be queued. | |
| bool | empty () const |
| bool | full () const |
| size_t | available () const |
| void | clear () |
| Clears the queue to the empty state. | |
| void | pop () |
Protected Member Functions | |
| queue_base (size_type max_size) | |
| The constructor that is called from derived classes. | |
Protected Attributes | |
| size_type | in |
| Where to input new data. | |
| size_type | out |
| Where to get the oldest data. | |
| size_type | current_size |
| The number of items in the queue. | |
| const size_type | MAX_SIZE |
| The maximum number of items in the queue. | |
The base class for all queues.
|
inline |
Returns the remaining capacity.
|
inline |
Checks to see if the queue is empty.
|
inline |
Checks to see if the queue is full.
|
inline |
Removes the oldest item from the back of the queue. Does nothing if the queue is already empty.