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