-
Notifications
You must be signed in to change notification settings - Fork 0
/
fonctionnement.h
53 lines (32 loc) · 842 Bytes
/
fonctionnement.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using namespace std;
#include "formule.h"
#include <vector>
class fonctionnement{
public:
//Constructor
fonctionnement(vector<noeud*> vect);
//Destructor
~fonctionnement();
//Fonctions
//Création d'une fonction
vector<noeud> random();
//Lecture de chaque ligne du fichier .csv pour en tirer les booléens
vector<bool> StockBool(string line);
//Mise en forme des données recues
void lecture(string path_to_the_file);
//Sélection du meilleur mutant
formule* selection(vector<formule*> mutant);
//donne nom aux noeuds pour l'affichage :
void nomme_noeuds();
//getter
//sac
vector<noeud*> getsac();
//genes
vector<vector<bool>> getgenes();
protected:
vector<noeud*> sac_;
int nb_col;
int nb_ligne;
vector<vector<bool>> genes_;
};
void rendu(formule* mutant);