18#ifndef __LIBSTD_QUEUE_H
19#define __LIBSTD_QUEUE_H
115 for (
Size i = 0; i < numItems; i++)
Containers provide access to stored items.
Array of items as a First-In-First-Out (FIFO) datastructure.
bool contains(const T &item) const
Look if an item exists on the Queue.
virtual void clear()
Removes all items from the Queue.
Size remove(T value)
Remove all items with the given value.
T & pop()
Remove item from the tail of the Queue.
virtual Size count() const
Returns the number of items in the Queue.
bool push(const T &item)
Add item to the head of the Queue.
T m_array[N]
The actual array where the data is stored.
Queue()
Default constructor.
uint m_tail
Tail of the queue.
virtual Size size() const
Returns the maximum size of this Queue.
uint m_head
Head of the queue.
uint m_count
Number of items in the queue.
unsigned int uint
Unsigned integer number.
unsigned int Size
Any sane size indicator cannot go negative.