1
0
mirror of https://gitlab.com/klmp200/LO27.git synced 2024-10-01 23:08:03 +00:00
LO27/LibList/CellElement.h

70 lines
1.5 KiB
C

#ifndef CELLELMNT_H
#define CELLELMNT_H
/*---bool---
*@true : 1
*@false : 0
*/
typedef enum Bool{
<<<<<<< a99b5938634fe0e05047ed6418191cdbc8cb683a:LibList/CellElement.h
<<<<<<< 0996ce834deca07fbf19d0b5de5f3c8b568185e6:LibList/CellElement.h
=======
>>>>>>> tests et complètion des fx:CellElement.h
=======
>>>>>>> Add true makefile + lists:LibList/CellElement.h
true = 1,
false = 0
} bool;
/*---cellElement---
*Pointer on a cell of the matrix
*
*@colIndex : index (int) of the column of this cell
*@rowIndex : index (int) of the row of this cell
*
*@value : a boolean that is the content of the cell
*
*@nextCol : pointer on the next cellElement in the same column
*@nextRow : pointer on the next cellElement in the same row
*
*/
struct cellElement {
int colIndex;
int rowIndex;
bool value;
struct cellElement * nextCol;
struct cellElement * nextRow;
};
typedef struct cellElement cellElement;
cellElement * CreateCellElem();
void freeCellElem(cellElement * elem);
int AddNextCol(cellElement* tree);
int AddNextRow(cellElement* tree);
<<<<<<< 2c81de90ca42fb8c5d2c30e01bf26df7f9292954:LibList/CellElement.h
void FreeCellElement(cellElement* element);
=======
void removeNextCol(cellElement* list);
void removeNextRow(cellElement* list);
void recursivePrint(cellElement * tree);
>>>>>>> Added funcs about CellElement:CellElement.h
<<<<<<< a99b5938634fe0e05047ed6418191cdbc8cb683a:LibList/CellElement.h
=======
void FreeCellElement(cellElement* element);
>>>>>>> Add true makefile + lists:LibList/CellElement.h
#endif