Simulating Mating Alliances as a Reproductive Tactic for Populations
 All Classes Functions Variables Friends
humanmt.h
1 #ifndef DEF_HUMANMT
2 #define DEF_HUMANMT
3 
4 #include "human.h"
5 
6 // class to define a human containing mtdna, motherID, fatherID, nb mates, nbchild
7 class Humanmt: public Human
8 {
9  public:
10  Humanmt();
11  Humanmt(int,int);
12  Humanmt(typeDNA *pMtDna,int pIdMother,int pIdFather,int a);
13  Humanmt(Humanmt const &);// contructor of copy /** Constructor of copy */
14  ~Humanmt();
15  friend std::ostream &operator<<(std::ostream&, Humanmt const&);
16  Humanmt& operator = (Humanmt const&);
17  typeDNA distance_mtdna(Humanmt const &);
18  void reborn(typeDNA *newMtDna,int newMother, int newFather);
19  void reborn(Humanmt const &);
20  void reset();
21  void random_dna();
22  typeDNA* mtDna;
23  // typeDNA mtDna[NB_MTDNA_CELL]; /** mtDNA sequence */
24  int get_nbCrumbMt();
25  int nbCrumbMt;
26  protected:
27  std::ostream& print(std::ostream&) const;
28 };
29 
30 typeDNA* gen_random_chromosome( const int len);
32 #endif
void reset()
Definition: humanmt.cpp:116
friend std::ostream & operator<<(std::ostream &, Humanmt const &)
void reborn(typeDNA *newMtDna, int newMother, int newFather)
Definition: humanmt.cpp:102
Definition: human.h:20
typeDNA * mtDna
Definition: humanmt.h:22
Humanmt & operator=(Humanmt const &)
Definition: humanmt.cpp:54
Definition: humanmt.h:7

Home