recycle fini
This commit is contained in:
28
TP3/List/BlockList.h
Normal file
28
TP3/List/BlockList.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef _LISTE_H
|
||||
#define _LISTE_H
|
||||
|
||||
typedef int Data;
|
||||
typedef struct SCell SCell;
|
||||
typedef struct SList SList;
|
||||
typedef struct SBlock SBlock;
|
||||
|
||||
SList *CreateList();
|
||||
SBlock *CreateBlock();
|
||||
void DeleteList(SList *list);
|
||||
SCell *_GetCellFromBlock(SBlock *bList);
|
||||
SBlock *AddBlock(SBlock *blist);
|
||||
SCell *AddElementBegin(SList *list, Data elem);
|
||||
SCell *AddElementEnd(SList *list, Data elem);
|
||||
SCell *AddElementAfter(SList *list, SCell *cell, Data elem);
|
||||
void DeleteCell(SList *list, SCell *cell);
|
||||
void PrintRecycleList(SList *list);
|
||||
SCell* RecycleCell(SCell *, SCell *cell);
|
||||
|
||||
SCell *GetFirstElement(SList *list);
|
||||
SCell *GetLastElement(SList *list);
|
||||
SCell *GetPrevElement(SCell *cell);
|
||||
SCell *GetNextElement(SCell *cell);
|
||||
Data GetData(SCell *cell);
|
||||
void PrintBlockList(SList *list);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user