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

Public Member Functions

 Humandna (int, int)
 
 Humandna (typeDNA *tabX, typeDNA *pMtDna, int pIdMother, int pIdFather, int a, int b)
 
 Humandna (Humandna const &)
 
 ~Humandna ()
 
Humandnaoperator= (Humandna const &)
 
void reborn (typeDNA *newDna, typeDNA *newMtDna, int newMother, int newFather)
 
void reborn (int newMother, int newFather)
 
void reborn (Humandna const &)
 
void reset ()
 
int get_nbCrumbNuc ()
 
- Public Member Functions inherited from Humanmt
 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 * dna
 
- Public Attributes inherited from Humanmt
typeDNA * mtDna
 
int nbCrumbMt
 

Protected Member Functions

std::ostream & print (std::ostream &) const
 
- Protected Member Functions inherited from Humanmt
std::ostream & print (std::ostream &) const
 

Protected Attributes

int nbCrumbNuc
 

Friends

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

Constructor & Destructor Documentation

Humandna::Humandna ( int  a,
int  b 
)

Constructor from size of mtDNA and size of dna sequences.

Humandna::Humandna ( typeDNA *  tabX,
typeDNA *  pMtDna,
int  pIdMother,
int  pIdFather,
int  a,
int  b 
)

Constructor from sequence of mtDNA, dna, parents id and the size of the arrays.

Humandna::Humandna ( Humandna const &  a)

Copy constructor.

Humandna::~Humandna ( )

Destructor.

Member Function Documentation

int Humandna::get_nbCrumbNuc ( )

Return the size of the array storing the DNA sequence.

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

Assignment operator.

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

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

void Humandna::reborn ( int  newMother,
int  newFather 
)

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

void Humandna::reborn ( Humandna const &  a)

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

void Humandna::reset ( )

Function to reset the value of all the attributes. Sequences are back to 0 with the same lenght.

Member Data Documentation

typeDNA* Humandna::dna

Dynamic arrays containing the sequence for the nuclear DNA.

int Humandna::nbCrumbNuc

Size of the dynamic array of nuclear DNA.


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

SMARTPOP home