Public Member Functions | Public Attributes | Protected Attributes

BitString::BitString Class Reference

BitString class - implements genotype as a series of bits. More...

#include <BitString.h>

Inheritance diagram for BitString::BitString:
Genotype

List of all members.

Public Member Functions

 BitString (uint nBits=0)
void registerParameters (StateP state)
bool initialize (StateP state)
BitStringcopy ()
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_

Detailed Description

BitString class - implements genotype as a series of bits.

Definition at line 17 of file BitString.h.


Member Function Documentation

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]

Read genotype data from XMLNode

Implements Genotype.

Definition at line 94 of file BitString.h.

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]

Write genotype data to XMLNode

Implements Genotype.

Definition at line 81 of file BitString.h.


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