Simulating Mating Alliances as a Reproductive Tactic for Populations
 All Classes Functions Variables Friends
humandna.h
1 #ifndef DEF_HUMANDNA
2 #define DEF_HUMANDNA
3 
4 #include "humanmt.h"
5 
6 class Humandna: public Humanmt
7 {
8  public:
9  Humandna();
10  Humandna(int,int);
11  Humandna(typeDNA *tabX,typeDNA *pMtDna,int pIdMother,int pIdFather,int a,int b);
12  Humandna(Humandna const &);
13  ~Humandna();
14  friend std::ostream &operator<<(std::ostream&, Humandna const &);
15  Humandna & operator=(Humandna const &);
16  typeDNA distance_dna(Humandna const &);
17  void reborn(typeDNA *newDna,typeDNA* newMtDna,int newMother, int newFather);
18  void reborn(int newMother, int newFather);
19  void reborn(Humandna const &);
20  void reset();
21  void random_dna();
22  typeDNA* dna;
23  int get_nbCrumbNuc();
24  int get_nbChromosomes();
25  protected:
26  int nbCrumbNuc;
27  int nbChromosomes;
28  std::ostream& print(std::ostream&) const;
29 };
30 
31 typeDNA* gen_random_chromosome( const int nbX, const int nbCell) ;
32 #endif
Definition: humandna.h:6
typeDNA * dna
Definition: humandna.h:22
Humandna & operator=(Humandna const &)
Definition: humandna.cpp:81
~Humandna()
Definition: humandna.cpp:61
void reset()
Definition: humandna.cpp:173
void reborn(typeDNA *newDna, typeDNA *newMtDna, int newMother, int newFather)
Definition: humandna.cpp:138
int get_nbCrumbNuc()
Definition: humandna.cpp:206
Definition: humanmt.h:7

Home