IQueue

Base class template for a queue storing items of a specific type.

Members

Functions

clear
void clear()

Removes all items from the queue.

pop
T* pop()

Pops an element from the queue and returns a pointer to that element. The value of the element must then be copied from the location pointed to before calling push() or pop() the next time.

push
T* push()

Reserves space for an element of the size T.sizeof at the queue and returns a pointer to it. The value of the element must then be copied to the location pointed to before calling push() or pop() the next time.

push
bool push(T element)

Pushes an element into the queue.

Inherited Members

From IQueueInfo

length
size_t length()
used_space
ulong used_space()
free_space
ulong free_space()
total_space
ulong total_space()
is_empty
bool is_empty()

Tells whether the queue is empty.

willFit
bool willFit(size_t bytes)

Finds out whether the provided number of bytes will fit in the queue.

Meta