Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed APDS_9960 mbed-rtos
Diff: include/cMatrice.h
- Revision:
- 7:4b283e36b147
- Parent:
- 5:d6b0bf27bac6
- Child:
- 9:6f3d8b714a59
--- a/include/cMatrice.h Thu Mar 31 11:24:34 2016 +0000
+++ b/include/cMatrice.h Fri Apr 01 14:30:30 2016 +0000
@@ -5,33 +5,32 @@
#include <vector>
#include "mbed.h"
-
-
-
// Déclaration de la classe Matrice
-class cMatrice
-{
+class cMatrice {
private:
- unsigned char** _matrice;
- //unsigned char _matrice [8][8];
- std::vector<cForme> _formes;
+ unsigned char** _matrice;
+ //unsigned char _matrice [8][8];
+ std::vector<cForme> _formes;
protected:
public:
// CONSTRUCTEUR
- cMatrice();
- virtual ~cMatrice();
+ cMatrice();
+ virtual ~cMatrice();
// GETTER
- unsigned char **getMatrice();
+ unsigned char **getMatrice();
// SETTER
- void updateMatrice(cForme &);
+ void updateMatrice(cForme &);
// METHODES
- void envoyerMatrice();
- void afficherForme(cForme &, unsigned char c);
- void ajouterForme(cForme &, unsigned char c);
- void supprimerForme(cForme & f);
- void clear();
+ void envoyerMatrice();
+ void afficherForme(cForme &, unsigned char c);
+ void ajouterForme(cForme &, unsigned char c);
+ void supprimerForme(cForme & f);
+ cForme getForme(unsigned int i);
+ void clear();
};
+
+
#endif // CMATRICE_H