|
std::ostream & | operator<< (std::ostream &, Human const &) |
|
Human::Human |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
Constructor from size of mtDNA (unused) and size of dna sequence (unused).
Human::Human |
( |
int |
pIdMother, |
|
|
int |
pIdFather, |
|
|
int |
a, |
|
|
int |
b |
|
) |
| |
Constructor from the parents ID and the size of mtDNA (unused) and size of dna sequence (unused).
Human::Human (Human const &) |
( |
| ) |
|
|
virtual |
int Human::getFather |
( |
| ) |
const |
int Human::getMother |
( |
| ) |
const |
int Human::getNbChild |
( |
| ) |
const |
Returns the number this Human have generated.
int Human::getNbMate |
( |
| ) |
const |
Returns the number of mates this human had children with.
void Human::hadChild |
( |
int |
n | ) |
|
Increases the number of children for this Human by n.
Increases the number of mate by one.
void Human::reborn |
( |
int |
newMother, |
|
|
int |
newFather |
|
) |
| |
Make a new instance out of an old one just changing its attributes.
void Human::reborn |
( |
Human const & |
a | ) |
|
Make a new instance out of an old one just changing its attributes.
Function to reset the value of all the attributes.
void Human::shared_parents (Human const &) |
( |
| ) |
|
Function that returns whether the two humans share at least one parent.
Number of mates with who the Human had children.
The documentation for this class was generated from the following files: