Commit 60c8c706 authored by Victor Blanchet's avatar Victor Blanchet
Browse files

Ajout de la méthode EnsembleEtat::reset();

parent 1a1ae2cd
......@@ -60,6 +60,15 @@ void EnsembleEtat::initEtat(const Etat* init_etats){
nbEtats = sizeof (init_etats);
}
void EnsembleEtat::reset(){
if (ensEtats != nullptr){
for(auto it : ensEtats){
delete it;
}
nbEtats=0;
}
};
//méthodes de la classe Etat
......
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