BitString class - implements genotype as a series of bits. More...
#include <BitString.h>
Public Member Functions | |
| BitString (uint nBits=0) | |
| void | registerParameters (StateP state) |
| bool | initialize (StateP state) |
| BitString * | copy () |
| std::vector< CrossoverOpP > | getCrossoverOp () |
| std::vector< MutationOpP > | getMutationOp () |
| void | write (XMLNode &xBitString) |
| void | read (XMLNode &xBitString) |
Public Attributes | |
| std::vector< bool > | bits |
Protected Attributes | |
| uint | nBits_ |
BitString class - implements genotype as a series of bits.
Definition at line 17 of file BitString.h.
| BitString* BitString::BitString::copy | ( | ) | [inline, virtual] |
Create an identical copy of the genotype object
Implements Genotype.
Definition at line 59 of file BitString.h.
| std::vector<CrossoverOpP> BitString::BitString::getCrossoverOp | ( | ) | [inline, virtual] |
Create and return a vector of crossover operators
Reimplemented from Genotype.
Definition at line 65 of file BitString.h.
| std::vector<MutationOpP> BitString::BitString::getMutationOp | ( | ) | [inline, virtual] |
Create and return a vector of mutation operators
Reimplemented from Genotype.
Definition at line 73 of file BitString.h.
| bool BitString::BitString::initialize | ( | StateP | state | ) | [inline, virtual] |
Initialize a genotype object (read parameters, perform sanity check, build data)
Implements Genotype.
Definition at line 37 of file BitString.h.
| void BitString::BitString::read | ( | XMLNode & | ) | [inline, virtual] |
| void BitString::BitString::registerParameters | ( | StateP | ) | [inline, virtual] |
Register genotype's parameters (called before Genotype::initialize)
Reimplemented from Genotype.
Definition at line 30 of file BitString.h.
| void BitString::BitString::write | ( | XMLNode & | ) | [inline, virtual] |
1.7.1