Simulating Mating Alliances as a Reproductive Tactic for Populations
 All Classes Functions Variables Friends
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
Humanmt Class Reference
Inheritance diagram for Humanmt:
Human Humandna

Public Member Functions

 Humanmt (int, int)
 
 Humanmt (typeDNA *pMtDna, int pIdMother, int pIdFather, int a)
 
 Humanmt (Humanmt const &)
 
Humanmtoperator= (Humanmt const &)
 
void reborn (typeDNA *newMtDna, int newMother, int newFather)
 
void reborn (Humanmt const &)
 
void reset ()
 
int get_nbCrumbMt ()
 
- Public Member Functions inherited from Human
 Human (int, int)
 
 Human (int pIdMother, int pIdFather, int, int)
 
 Human (Human const &)
 
virtual ~Human ()
 
Humanoperator= (Human const &)
 
bool shared_parents (Human const &)
 
void reborn (int newMother, int newFather)
 
void reborn (Human const &)
 
void reset ()
 
int getMother () const
 
int getFather () const
 
int getNbMate () const
 
int getNbChild () const
 
void hadChild (int n)
 
void newMate ()
 

Public Attributes

typeDNA * mtDna
 
int nbCrumbMt
 

Friends

std::ostream & operator<< (std::ostream &, Humanmt const &)
 

Additional Inherited Members

- Protected Attributes inherited from Human
int idFather
 
int idMother
 
int nbChild
 
int nbMate
 

Constructor & Destructor Documentation

Humanmt::Humanmt ( int  a,
int  b 
)

Constructor from the size of mtDNA and the size of DNA (unused).

Humanmt::Humanmt ( typeDNA *  pMtDna,
int  pIdMother,
int  pIdFather,
int  a 
)

Constructor from the mtDNA sequence, the parents ID and the size of the mtDNA sequence.

Humanmt::Humanmt ( Humanmt const &  a)

Copy constructor.

Member Function Documentation

Humanmt & Humanmt::operator= ( Humanmt const &  a)

Assignment operator.

void Humanmt::reborn ( typeDNA *  newMtDna,
int  newMother,
int  newFather 
)

Make a new instance out of an old one just changing its attributes.

void Humanmt::reborn ( Humanmt const &  a)

Make a new instance out of an old one just changing its attributes.

void Humanmt::reset ( )

Function to reset the value of all the attributes.

void Humanmt::get_nbCrumbMt ( )

Return the size of the array containing the mtDNA sequence (number of sites divided by 32).

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
Humanmt const &   
)
friend

Default output.

Member Data Documentation

typeDNA* Humanmt::mtDna

Array representing the mtDNA sequence.

int Humanmt::nbCrumbMt

Number of cell of the array representing the mtDNA sequence.


The documentation for this class was generated from the following files:

SMARTPOP home