#include <Gene.h>
Public Member Functions | |
| Gene (GeneBit **Genes, const unsigned int &CLength, glotzmath::RandomNumberGenerator *RG) | |
| Gene (const Gene &RHS) | |
| Gene (std::ifstream &Input, glotzmath::RandomNumberGenerator *RG) | |
| Gene & | operator= (const Gene &RHS) |
| GeneBit * | GetGeneBitAtLocation (const unsigned int &Loc) const |
| void | Randomize () |
| unsigned int | GetChromosomeLength () const |
| void | GeneSplice (Gene &RHS, const double &PercentToSplice) |
| void | PrintGene () const |
| void | PrintGene_Divisible () const |
| void | Mutate () |
| char * | GetAllData (unsigned int &DataLength) const |
| void | SetAllData (char *Data, unsigned int &DataLength) const |
| unsigned int | GetEffectiveGeneLength () const |
| glotzmath::RandomNumberGenerator * | GetRandGen () const |
| void | SaveGeneToFile (std::ofstream &Output) const |
| unsigned int | GetNumOfSuccessors () const |
| Gene ** | GetListOfSuccessors (unsigned int &NumSuccessors) const |
| ~Gene () | |
Private Attributes | |
| glotzmath::RandomNumberGenerator * | MyRandGen |
| GeneBit ** | MyGenes |
| unsigned int | ChromosomeLength |
| unsigned int | EffectiveLength |
| Gene::Gene | ( | GeneBit ** | Genes, | |
| const unsigned int & | CLength, | |||
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| Gene::Gene | ( | const Gene & | RHS | ) |
| Gene::Gene | ( | std::ifstream & | Input, | |
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| Gene::~Gene | ( | ) |
| GeneBit * Gene::GetGeneBitAtLocation | ( | const unsigned int & | Loc | ) | const |
| void Gene::Randomize | ( | ) |
| unsigned int Gene::GetChromosomeLength | ( | ) | const |
| void Gene::GeneSplice | ( | Gene & | RHS, | |
| const double & | PercentToSplice | |||
| ) |
| void Gene::PrintGene | ( | ) | const |
| void Gene::PrintGene_Divisible | ( | ) | const |
| void Gene::Mutate | ( | ) |
| char * Gene::GetAllData | ( | unsigned int & | DataLength | ) | const |
| void Gene::SetAllData | ( | char * | Data, | |
| unsigned int & | DataLength | |||
| ) | const |
| unsigned int Gene::GetEffectiveGeneLength | ( | ) | const |
| glotzmath::RandomNumberGenerator * Gene::GetRandGen | ( | ) | const |
| void Gene::SaveGeneToFile | ( | std::ofstream & | Output | ) | const |
| unsigned int Gene::GetNumOfSuccessors | ( | ) | const |
| Gene ** Gene::GetListOfSuccessors | ( | unsigned int & | NumSuccessors | ) | const |
glotzmath::RandomNumberGenerator* Gene::MyRandGen [private] |
GeneBit** Gene::MyGenes [private] |
unsigned int Gene::ChromosomeLength [private] |
unsigned int Gene::EffectiveLength [private] |
1.5.3