A First In-First Out (FIFO) data structure: source file. More...
#include "queue.h"
#include "tdkdtree.h"
#include <stdlib.h>
Go to the source code of this file.
Functions | |
void | qbuild (void) |
Building an empty queue. | |
void | qinsert (qnode *new) |
Inserting a new element. | |
qnode * | qretrieve (void) |
Retrieving a pointer to the first element from the queue. | |
void | qdelete (void) |
Deleting the first element from the queue. | |
int | qempty (void) |
Checking if the queue is empty. | |
void | qdestroy (void) |
Destroying a queue object. | |
Variables | |
static queue * | kdqueue = NULL |
A queue for infokdnode data structures. |
A First In-First Out (FIFO) data structure: source file.
A straightforward implementation of a queue data structure for FIFO storing-strategy based on a description of J. Villalobos (1996).
Definition in file queue.c.
void qbuild | ( | void | ) |
void qdelete | ( | void | ) |
void qdestroy | ( | void | ) |
int qempty | ( | void | ) |
void qinsert | ( | qnode * | new | ) |
qnode* qretrieve | ( | void | ) |
Retrieving a pointer to the first element from the queue.
The element pointed by first
is retrieved by the function that done the calling. The element is not deleted from the queue.
Definition at line 81 of file queue.c.