eoOneBitFlip< Chrom > Class Template Reference

eoOneBitFlip --> changes 1 bit More...

#include <ga/eoBitOp.h>

Inheritance diagram for eoOneBitFlip< Chrom >:
eoMonOp< Chrom > eoOp< Chrom > eoUF< Chrom &, bool > eoFunctorBase unary_function

List of all members.

Public Member Functions

virtual std::string className () const
 The class name.
bool operator() (Chrom &chrom)
 Change one bit.

Detailed Description

template<class Chrom>
class eoOneBitFlip< Chrom >

eoOneBitFlip --> changes 1 bit

Definition at line 46 of file eoBitOp.h.

Member Function Documentation

template<class Chrom>
bool eoOneBitFlip< Chrom >::operator() ( Chrom &  chrom) [inline, virtual]

Change one bit.

chromThe cromosome which one bit is going to be changed.

Implements eoUF< Chrom &, bool >.

Definition at line 56 of file eoBitOp.h.

References eoRng::random().

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends