#include "idgen.h"
#include "idliste-restricted.h"
Go to the source code of this file.
Data Structures | |
struct | _elem |
struct | PRIVATE_LIST |
Defines | |
#define | LST_MODE 0x0f |
#define | LST_BEG 0x0 /* au debut de la liste */ |
#define | LST_END 0x1 /* a la fin de la liste */ |
#define | LST_ELEM 0x2 /* apres un element */ |
#define | LST_ELEM_AV 0x4 /* AVANT un element */ /*JPR */ |
#define | LST_NEXT 0x10 /* au champ Pred de l'element */ |
#define | LST_PRED |
#define | LST_BIDIR 0x40 /* liste bidirect. */ |
#define | _IdLstPrivate(lst) (((PRIVATE_LIST*)(lst))-1) |
#define | IdLstNumero(lst) (_IdLstPrivate(lst)->Numero) |
#define | IdLstMessage(lst) (_IdLstPrivate(lst)->_message) |
#define | IdLstFichier(lst) (_IdLstPrivate(lst)->_fichier) |
#define | IdLstNbElems(l) ( _IdLstPrivate(l)->NbElems) |
#define | IdLstNbObjects(l) ( _IdLstPrivate(l)->NbElems) |
#define | IdLstType(l) ( _IdLstPrivate(l)->Type) |
#define | IdLstGetTypeObj(el) ( (el)->TypeElem) |
#define | IdLstSetTypeObj(el, type) ( (el)->TypeElem) = (type) |
#define | IdLstFirst(l) ( _IdLstPrivate(l)->First) |
#define | IdLstList(l) ( _IdLstPrivate(l)->First) |
#define | IdLstLast(l) ( _IdLstPrivate(l)->Last) |
#define | IdLstNext(el) ( ((el) )->Next) |
#define | IdLstPrevious(el) ( ((el) )->Pred) |
#define | IdLstPtrObj(el) ( ((el))->Object) |
#define | IdLstAddFirst(list, obj) IdLstAddElement((list),((void *)obj),LST_BEG|LST_BIDIR,NULL) |
#define | IdLstAddLast(list, obj) IdLstAddElement((list),((void *)obj),LST_END|LST_BIDIR,NULL) |
#define | IdLstFree(l) _IdLstFree( (PLIST*)&(l) ) |
#define | IdLstDestroyNoControl(l, f) _IdLstDestroyNoControl( (PLIST*)&(l),(f) ) |
#define | IdLstFindElemObj(a, b, c) IdLstFindElem( (a),(b),(c) ) |
#define | IdLstAddAfter(list, obj, el) IdLstAddElement((list),((void *)obj),LST_ELEM|LST_BIDIR,(el) ) |
#define | IdLstAddBefore(list, obj, el) IdLstAddElement((list),((void *)obj),LST_ELEM_AV|LST_BIDIR,(el) ) |
Typedefs | |
typedef _elem | LIST_ELEMENT |
typedef LIST_ELEMENT * | PLIST_ELEMENT |
typedef PLIST_ELEMENT | PLIST |
typedef PLIST_ELEMENT * | PPLIST |
typedef int(* | INT_FUNCTION_PLISTELEMENT_VOIDP_POINTER )(PLIST_ELEMENT, void *) |
Functions | |
void | IdLstClear (PLIST lst) |
Deletion of the elements of a list BUT not the OBJECTS it refers to. | |
PLIST | IdLstCopy (PLIST lst) |
Duplication of a list AND it's elements BUT NOT the refered objects. | |
PLIST | IdLstAlloc (void) |
Allocation of a list. | |
PLIST_ELEMENT | IdLstSearchElemObj (PLIST, void *) |
Get an element from a list. | |
PLIST_ELEMENT | IdLstFindElem (PLIST, INT_FUNCTION_PLISTELEMENT_VOIDP_POINTER, void *) |
void | IdLstDestroyElemNoControl (PLIST, PLIST_ELEMENT, VOID_FUNCTION_VOIDP_POINTER) |
Deletion of an element of a list AND the refering object. | |
int | IdLstRemoveFirst (PLIST) |
Suppression of the first element of a bidirectional list. | |
int | IdLstRemoveLast (PLIST) |
Suppression of the last element of a bidirectional list. | |
int | IdLstRemoveElem (PLIST, PLIST_ELEMENT) |
Suppression of an element of a bidirectional list. |
|
Definition at line 89 of file idliste.h. Referenced by _IdLstFree(), IdLstAddElement(), IdLstRemoveElem(), IdLstRemoveFirst(), IdLstRemoveLast(), LstAddAfter(), and LstAddBefore(). |
|
|
|
|
|
Definition at line 127 of file idliste.h. Referenced by LstAddBefore(). |
|
Definition at line 129 of file idliste.h. Referenced by IdDcmGetHeader(), IdDcmGetHeaderLeonardo(), IdLstCopy(), and LstAddAfter(). |
|
|
|
|
|
|
|
Definition at line 118 of file idliste.h. Referenced by _IdDcmGetElementLength(), _IdDcmReadElement(), _IdDcmReadElementNoSQ(), _IdDcmReadElementUSHORT(), _IdLstDestroyNoControl(), IdDcmAffDcmHdr(), IdDcmGetHeader(), IdLstAddElement(), IdLstClear(), IdLstCopy(), IdLstFindElem(), IdLstRemoveFirst(), IdLstRemoveLast(), IdLstSearchElemObj(), and LstAddBefore(). |
|
Definition at line 441 of file idliste.h. Referenced by IdDcmHdrFree(). |
|
|
|
Definition at line 122 of file idliste.h. Referenced by IdLstAddElement(), IdLstRemoveFirst(), IdLstRemoveLast(), and LstAddAfter(). |
|
Definition at line 119 of file idliste.h. Referenced by _IdLstFree(). |
|
|
|
Definition at line 113 of file idliste.h. Referenced by _IdLstFree(), IdLstAddElement(), IdLstRemoveElem(), IdLstRemoveFirst(), IdLstRemoveLast(), LstAddAfter(), and LstAddBefore(). |
|
|
|
Definition at line 124 of file idliste.h. Referenced by _IdDcmGetElementLength(), _IdDcmReadElement(), _IdDcmReadElementNoSQ(), _IdDcmReadElementUSHORT(), _IdLstDestroyNoControl(), IdDcmAffDcmHdr(), IdDcmGetHeader(), IdLstClear(), IdLstCopy(), IdLstRemoveElem(), IdLstRemoveFirst(), IdLstRemoveLast(), LstAddAfter(), and LstAddBefore(). |
|
|
|
Definition at line 125 of file idliste.h. Referenced by IdLstRemoveElem(), IdLstRemoveFirst(), IdLstRemoveLast(), LstAddAfter(), and LstAddBefore(). |
|
Definition at line 126 of file idliste.h. Referenced by _IdDcmGetElementLength(), _IdDcmReadElement(), _IdDcmReadElementNoSQ(), _IdDcmReadElementUSHORT(), _IdLstDestroyNoControl(), IdDcmAffDcmHdr(), IdDcmGetHeader(), IdLstCopy(), and IdLstDestroyElemNoControl(). |
|
|
|
|
|
Definition at line 48 of file idliste.h. Referenced by IdLstAddElement(). |
|
Definition at line 59 of file idliste.h. Referenced by IdLstAddElement(). |
|
Definition at line 50 of file idliste.h. Referenced by IdLstAddElement(). |
|
Definition at line 51 of file idliste.h. Referenced by IdLstAddElement(). |
|
Definition at line 49 of file idliste.h. Referenced by IdLstAddElement(). |
|
|
|
Definition at line 56 of file idliste.h. Referenced by IdLstAddElement(). |
|
Value:
Definition at line 57 of file idliste.h. Referenced by IdLstAddElement(). |
|
|
|
|
|
|
|
Definition at line 76 of file idliste.h. Referenced by IdLstFindElem(). |
|
|
|
Allocation of a list.
Definition at line 121 of file lstallo.c. References PRIVATE_LIST::_fichier, PRIVATE_LIST::_message, IdErrPrintf(), LST, and PRIVATE_LIST::Type. Referenced by IdDcmHdrAlloc(). |
|
Deletion of the elements of a list BUT not the OBJECTS it refers to.
Definition at line 231 of file lstallo.c. References IdLstFirst, IdLstNext, and IdLstRemoveElem(). |
|
Duplication of a list AND it's elements BUT NOT the refered objects.
Definition at line 276 of file lstallo.c. References PRIVATE_LIST::_fichier, PRIVATE_LIST::_message, IdErrPrintf(), IdLstAddLast, IdLstFirst, IdLstNext, IdLstPtrObj, LST, and PRIVATE_LIST::Type. |
|
Deletion of an element of a list AND the refering object.
Definition at line 256 of file lstallo.c. References IdLstPtrObj, and IdLstRemoveElem(). |
|
|
|
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(). |
|
Get an element from a list.
Definition at line 147 of file lstallo.c. References IdLstFirst, _elem::Next, and _elem::Object. |