#include <BinaryGene.h>
Inheritance diagram for BinaryGene:
Public Member Functions | |
BinaryGene (int bits, Random *random) | |
Constructor. | |
BinaryGene (BinaryGene &binaryGene) | |
Copy constructor. | |
BinaryGene (BinaryGene *binaryGene) | |
Copy constructor. | |
~BinaryGene () | |
Destructor. | |
int | bitFlipMutation (double mutationProbability) |
void | writeGenotype (ofstream &outputFile) |
BinaryGene & | operator= (const BinaryGene &binaryGene) |
Public Attributes | |
char * | allele_ |
Bit string. | |
int | numberOfBits_ |
Number of bits of the bit string. | |
Friends | |
ostream & | operator<< (ostream &outputStream, BinaryGene &gene) |
|
Definition at line 17 of file BinaryGene.cpp. References allele_, BINARY, numberOfBits_, Gene::random_, and Random::rnd(). |
|
Definition at line 43 of file BinaryGene.cpp. References allele_, and numberOfBits_. |
|
Definition at line 65 of file BinaryGene.cpp. References allele_, and numberOfBits_. |
|
Destructor of the class Definition at line 85 of file BinaryGene.cpp. References allele_. |
|
Reimplemented from Gene. Definition at line 90 of file BinaryGene.cpp. References allele_, Random::flip(), numberOfBits_, and Gene::random_. |
|
Definition at line 118 of file BinaryGene.cpp. References allele_, and numberOfBits_. |
|
Implements Gene. Definition at line 108 of file BinaryGene.cpp. References allele_, and numberOfBits_. |
|
Definition at line 128 of file BinaryGene.cpp. |
|
Definition at line 21 of file BinaryGene.h. Referenced by BinaryGene(), bitFlipMutation(), operator<<(), operator=(), writeGenotype(), and ~BinaryGene(). |
|
Definition at line 22 of file BinaryGene.h. Referenced by BinaryGene(), bitFlipMutation(), operator<<(), operator=(), and writeGenotype(). |