Classes | Typedefs | Functions

pathqueue.h File Reference

Header file of pathqueue.c. More...

#include <stdlib.h>
#include <stdio.h>
Include dependency graph for pathqueue.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  _Node
 Definition of a queue's node. More...
struct  _NodeQueue
 Definition the queue. More...

Typedefs

typedef struct _Node Node
 Definition of a queue's node.
typedef struct _NodeQueue NodeQueue
 Definition the queue.

Functions

int queueIsEmpty (NodeQueue *q)
 Tests if a queue is empty.
void pushNode (NodeQueue *q, int x, int y)
 Push a node into the queue in a FIFO mode.
void pushNodeLast (NodeQueue *q, int x, int y)
 Push a node into the queue in a LIFO mode.
int popNode (NodeQueue *q, Node *n)
 Pop the first node of the queue.
void printQueue (NodeQueue *q)
 Print the queue.
NodeQueuenewQueue (void)
 Init queue values.
int delQueue (NodeQueue *q)
 Free queue memory.
int isInQueue (NodeQueue *q, int x, int y)
 Finds out if the node (X,Y) is in the queue.
void drainQueue (NodeQueue *q)
 Free memory allocated in the queue.

Detailed Description

Header file of pathqueue.c.

Author:
Jose Maria Martin Laguna <jmmartin@etud.insa-toulouse.fr>

Typedef Documentation

typedef struct _Node Node

Definition of a queue's node.

typedef struct _NodeQueue NodeQueue

Definition the queue.