#include <stdio.h>#include <stdlib.h>#include <string.h>#include "epDefs.h"#include "epUtils.h"#include "epList.h"Include dependency graph for epList.c:

Go to the source code of this file.
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) |
The list-elements a numeroted from 0 to n-1 (n is the total number of elements).
Definition in file epList.c.
|
|
Return the first list element matching criterion, using the comparisonFunction. visibility :: private
|
|
|
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
|
|
|
Destroy the list and all the elements contained into. visibility :: public
|
|
|
Return the indiceth element of the list and throw it out the list if removeFromList is set (equal <true>). visibility :: public
|
|
|
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 :-).
|
|
|
Print the elements of the list. visibility :: private
|
|
|
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
|
|
|
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
|
|
|
Return the size of the list (the number of elements contained into). visibility :: public
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000