Verified Commit 0ca8f77f authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Composition -> agregation

parent e224a87c
......@@ -23,9 +23,9 @@ class Automate {
return *instance;
}
~Automate() { delete fonction; delete regleVoisinage; }
void setFonction(Fonction& f) { delete fonction; fonction = new Fonction(f); }
void setRegleVoisinage(RegleVoisinage& r) { delete regleVoisinage; regleVoisinage = new RegleVoisinage(r); }
~Automate() = default;
void setFonction(Fonction& f) { fonction = &f; }
void setRegleVoisinage(RegleVoisinage& r) { regleVoisinage = &r; }
void setDelai(const unsigned int d) { delai = d; }
};
......
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