12 #define SIZE_MTDNA 3200 // default values
13 #define NB_CHROMOSOME 2
14 #define SIZE_CHROMOSOME 3200
15 #define TRACK_MATE_AND_CHILDREN 0 // change to 1 if want to actually compute nb of mate and children otherwise waste of time
17 static const int NB_CHROMOSOME_CELL = SIZE_CHROMOSOME/CRUMB;
18 static const int NB_MTDNA_CELL = SIZE_MTDNA/CRUMB;
25 Human(
int pIdMother,
int pIdFather,
int,
int);
28 friend std::ostream &operator<<(std::ostream&,
Human const&);
30 bool shared_parents(
Human const &);
31 bool shared_parents2(
Human const &);
32 void reborn(
int newMother,
int newFather);
35 int getMother()
const;
49 std::ostream& print(std::ostream&)
const;
void hadChild(int n)
Definition: human.cpp:135
Human & operator=(Human const &)
Definition: human.cpp:46
int idFather
Definition: human.h:43
int getNbChild() const
Definition: human.cpp:130
int nbChild
Definition: human.h:45
int idMother
Definition: human.h:44
int nbMate
Definition: human.h:46
void reset()
Definition: human.cpp:107
void reborn(int newMother, int newFather)
Definition: human.cpp:91
int getNbMate() const
Definition: human.cpp:125
int getFather() const
Definition: human.cpp:120
void newMate()
Definition: human.cpp:140