#include "epDefs.h"#include "epUtils.h"Include dependency graph for epList.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Compounds | |
| struct | epList_s |
| struct | epListElt_s |
Defines | |
| #define | epDir_t int |
| #define | _UNDETERMINED 0 |
| #define | _FIFO 1 |
| #define | _LIFO 2 |
Typedefs | |
| typedef struct epList_s | epList_t |
Functions | |
| epList_t* | epList_create (const epDir_t direction, int (*elementDeallocatorFunction)(void *elt)) |
| int | epList_destroy (epList_t *list) |
| int | epList_put (epList_t *list, const int indice, const void *elt) |
| void* | epList_get (epList_t *list, const int indice, const boolean_t removeFromList) |
| void* | epList_access (epList_t *list, const int indice) |
| void* | __epList_search (const epList_t *list, const searchDir_t direction, int from, int to, const void *criterion, boolean_t (*comparisonFunction) (const void *element, const void *criterion), int *indice) |
| void* | epList_search (const epList_t *list, const void *criterion, boolean_t (*comparisonFunction) (const void *element, const void *criterion)) |
| void* | epList_rsearch (const epList_t *list, const void *criterion, boolean_t (*comparisonFunction) (const void *element, const void *criterion)) |
| int | epList_size (epList_t *list) |
| boolean_t | epList_isEmpty (epList_t *list) |
| int | epList_setElementPrintFunction ( epList_t *list, char *(*elementPrintFunction)(void *elt)) |
| int | epList_printIt (epList_t *list, char *title) |
| void | epList_printElements (epList_t *list) |
Definition in file epList.h.
|
|
|
|
|
|
|
|
|
|
|
FIFO list direction |
|
|
LIFO list direction |
|
|
|
|
|
|
|
|
undetermined list direction |
|
|
|
|
|
|
|
|
|
|
|
list direction type |
|
|
|
|
|
The list structure |
|
|
Return the first list element matching criterion, using the comparisonFunction. visibility :: private
Definition at line 330 of file epList.c. Referenced by epList_rsearch(), and epList_search(). |
|
|
Return the indiceth element of the list (in fact, it is only an encapsulation of epList_get(list, indice, false)). visibility :: public
|
|
|
Create & initialize a new list. visibility :: public
Definition at line 62 of file epList.c. Referenced by epQueue_create(), and epStack_create(). |
|
|
Destroy the list and all the elements contained into. visibility :: public
Definition at line 101 of file epList.c. Referenced by epQueue_destroy(), and epStack_destroy(). |
|
|
Return the indiceth element of the list and throw it out the list if removeFromList is set (equal <true>). visibility :: public
Definition at line 230 of file epList.c. Referenced by epList_access(), epQueue_out(), and epStack_pop(). |
|
|
Return <true> is the list is empty, <false> else. visibility :: public
@remarks: With only a <true> or <false> value, we can't know if an error append(i.e. you give a NULL list in argument :-).
Definition at line 472 of file epList.c. Referenced by epQueue_isEmpty(), and epStack_isEmpty(). |
|
|
Print the elements of the list. visibility :: private
Definition at line 558 of file epList.c. Referenced by epList_printIt(), epQueue_printIt(), and epStack_printIt(). |
|
|
Print the content of the list (its parameters and all its elements). visibility :: public
|
|
|
Insert a next-element at the specified indice into the list. visibility :: public
Definition at line 144 of file epList.c. Referenced by epQueue_in(), and epStack_push(). |
|
|
Return the first list element matching criterion, using the comparisonFunction. visibility :: public
|
|
|
Return the first list element matching criterion, using the comparisonFunction. visibility :: public
|
|
|
Initialize the elementPrintFunction for the use of the printIt function. visibility :: public
Definition at line 495 of file epList.c. Referenced by epQueue_setElementPrintFunction(), and epStack_setElementPrintFunction(). |
|
|
Return the size of the list (the number of elements contained into). visibility :: public
Definition at line 449 of file epList.c. Referenced by epQueue_size(), and epStack_size(). |
1.2.1 written by Dimitri van Heesch,
© 1997-2000