mirror of
				https://gitlab.com/klmp200/LO27.git
				synced 2025-11-04 07:43:04 +00:00 
			
		
		
		
	Added the declaration of the cellElement and Bool types
This commit is contained in:
		
							
								
								
									
										44
									
								
								CellElement.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								CellElement.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
			
		||||
#ifndef CELLELMNT_H
 | 
			
		||||
#define CELLELMNT_H
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*---bool---
 | 
			
		||||
*@true  : 1
 | 
			
		||||
*@false : 0
 | 
			
		||||
*/
 | 
			
		||||
typedef enum Bool{
 | 
			
		||||
	
 | 
			
		||||
	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;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#endif 
 | 
			
		||||
		Reference in New Issue
	
	Block a user