1
0
mirror of https://gitlab.com/klmp200/LO27.git synced 2024-11-05 13:58:05 +00:00

added some doc

This commit is contained in:
Naej 2016-12-24 16:41:06 +01:00
parent 6c6bd307f8
commit f30e968e0a

View File

@ -64,17 +64,48 @@ cellElement * FindMatrixElem(Matrix matrix, int ColPos, int RowPos);
*@param ColPos an int indicating the column of the cell *@param ColPos an int indicating the column of the cell
*@param RowPos an int indicating the row of the cell *@param RowPos an int indicating the row of the cell
* *
*@return void *@return a bool (error code)
* *
*/ */
bool CreateMatrixElem(Matrix matrix, int ColPos, int RowPos); bool CreateMatrixElem(Matrix matrix, int ColPos, int RowPos);
/**
*Delete the cell in the given matrix
*
*@param matrix the Matrix
*@param ColPos an int indicating the column of the cell
*@param RowPos an int indicating the row of the cell
*
*@return an error code (int)
*
*/
int SupprMatrixElem(Matrix matrix, int ColPos, int RowPos); int SupprMatrixElem(Matrix matrix, int ColPos, int RowPos);
/**
*Delete or create the cell in the given matrix to fit the value
*
*@param matrix the Matrix
*@param ColPos an int indicating the column of the cell
*@param RowPos an int indicating the row of the cell
*
*@return an error code (bool)
*
*/
bool SetCellValue(Matrix matrix, int ColPos, int RowPos, bool value); bool SetCellValue(Matrix matrix, int ColPos, int RowPos, bool value);
/**
*Checks out the value of the cell in the given matrix
*
*@param matrix the Matrix
*@param ColPos an int indicating the column of the cell
*@param RowPos an int indicating the row of the cell
*
*@return the value (bool)
*
*/
bool GetCellValue(Matrix matrix, int ColPos, int RowPos); bool GetCellValue(Matrix matrix, int ColPos, int RowPos);
Matrix SetMatrixDim(Matrix matrix,int nbCols,int nbRows); Matrix SetMatrixDim(Matrix matrix,int nbCols,int nbRows);
void BasicPrintMatrix(Matrix matrix); void BasicPrintMatrix(Matrix matrix);