#include <stdlib.h>
#include "idliste.h"
#include "idprint.h"
#include "iderr.h"
Go to the source code of this file.
Functions | |
int | IdLstAddElement (PLIST list, void *obj, int mode, PLIST_ELEMENT elem) |
Manipulation of bidirect lists or binary trees (creation, registering...). | |
int | IdLstRemoveFirst (PLIST l) |
Suppression of the first element of a bidirectional list. | |
int | IdLstRemoveLast (PLIST l) |
Suppression of the last element of a bidirectional list. | |
int | IdLstRemoveElem (PLIST l, PLIST_ELEMENT e) |
Suppression of an element of a bidirectional list. | |
int | LstAddAfter (PLIST l, void *pobj, PLIST_ELEMENT e) |
Creation of an element and insertion-AFTER a given element-inside a bidirectional * list. | |
int | LstAddBefore (PLIST l, void *pobj, PLIST_ELEMENT e) |
Creation of an element and insertion-BEFORE a given element-inside a bidirectional * list. |
|
Manipulation of bidirect lists or binary trees (creation, registering...). Creation of a liste and registering of an element. A list can be unary (mono ou bidirectional) or represent binary tree (correponding modes are LST_NEXT et LST_PRED);
Definition at line 94 of file lstbasic.c. References _IdLstPrivate, IDERR_ALLOC_ELEM, IDERR_POINTER_IS_NULL, IdErrno, IdLstFirst, IdLstLast, IdLstNbElems, LST_BEG, LST_BIDIR, LST_ELEM, LST_ELEM_AV, LST_END, LST_NEXT, LST_PRED, _elem::Next, _elem::Numero, _elem::Object, and _elem::Pred. |
|
Suppression of an element of a bidirectional list.
Definition at line 289 of file lstbasic.c. References _IdLstPrivate, IDERR_EMPTY_LIST, IdErrno, IdLstNbElems, IdLstNext, IdLstPrevious, IdLstRemoveFirst(), and IdLstRemoveLast(). Referenced by IdLstClear(), and IdLstDestroyElemNoControl(). |
|
Suppression of the first element of a bidirectional list.
Definition at line 214 of file lstbasic.c. References _IdLstPrivate, IDERR_EMPTY_LIST, IdErrno, IdLstFirst, IdLstLast, IdLstNbElems, IdLstNext, and IdLstPrevious. Referenced by IdLstRemoveElem(). |
|
Suppression of the last element of a bidirectional list.
Definition at line 251 of file lstbasic.c. References _IdLstPrivate, IDERR_EMPTY_LIST, IdErrno, IdLstFirst, IdLstLast, IdLstNbElems, IdLstNext, and IdLstPrevious. Referenced by IdLstRemoveElem(). |
|
Creation of an element and insertion-AFTER a given element-inside a bidirectional * list.
Definition at line 340 of file lstbasic.c. References _IdLstPrivate, IDERR_ALLOC_ELEM, IdErrno, IdErrPrintf(), IdLstAddLast, IdLstLast, IdLstNbElems, IdLstNext, IdLstPrevious, _elem::Numero, and _elem::Object. |
|
Creation of an element and insertion-BEFORE a given element-inside a bidirectional * list.
Definition at line 378 of file lstbasic.c. References _IdLstPrivate, IDERR_ALLOC_ELEM, IdErrno, IdErrPrintf(), IdLstAddFirst, IdLstFirst, IdLstNbElems, IdLstNext, IdLstPrevious, _elem::Numero, and _elem::Object. |