Commit 6fc0222f authored by Boris Cazic's avatar Boris Cazic
Browse files

Voisinage

parent 6084a789
Pipeline #79058 passed with stage
in 15 seconds
......@@ -65,11 +65,10 @@ public:
};
class RegleVoisinage{
private :
private :
public :
public :
unsigned int nbVoisin;
void setNbVoisins(unsigned int r);
unsigned int getNbVoisin() {return nbVoisin;}
......@@ -78,6 +77,16 @@ class RegleVoisinage{
};
/*class RegleVoisinageRayon : public RegleVoisinage { //voisinage rayon hérite de voisinage puisque spécification
protected:
unsigned int rayon;
public:
unsigned int getRayon() const { return rayon; }
explicit RegleVoisinageRayon(unsigned int ray) : rayon(ray) {} //explicit car
};*/
class RegleVoisinageNeumann : public RegleVoisinage {
......@@ -91,6 +100,7 @@ public:
class RegleVoisinageMoore : public RegleVoisinage {
public:
void setNbVoisins(unsigned int r);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment