Public Member Functions | |
| Queue (uint32_t initialSize=50) | |
| Create a new Queue with an optional initial size. | |
| void | add (const type &v) |
| Add an element to the back of the queue. | |
| void | remove () |
| Remove the first element from the front of the queue. | |
| bool | isEmpty () |
| Return true if the queue is empty. | |
| type * | get () |
| Get the first element from the front of the queue, without removing it. | |
Constraint on <type> is that it must have a copy constructor and a default constructor.
|
|
Create a new Queue with an optional initial size. The size sets the maximum number of elements that can be added before the queue must be resized. |
1.4.3