Go to the documentation of this file.
19 typedef struct sQueueNode
int size
Number of elements of this queue.
int queueSize(Queue queue)
Returns the size of a queue.
void queueDelete(Queue queue)
Deletes a queue.
struct sQueueNode * next
Next node.
int queueInsert(Queue queue, void *value)
Inserts an element in a queue.
int queueRemove(Queue queue, void **value)
Removes an element from a queue.
int queueMap(Queue queue, void(*fun)(void *))
Applies a function to the elements of a queue.
SQueue * Queue
Queue definition.
QueueNode head
Apontador para o início da queue.
int queueConsult(Queue queue, void **value)
Provides the value at the head of a queue.
void * value
Node's value.
Iterator queueIterator(Queue queue)
Creates an iterator from a queue.
Implementation of an iterator.
SQueueNode * QueueNode
Queue node definition.
Queue newQueue(void)
Creates a queue.
LibRCG © 2004-2015
Rui Carlos Gonçalves