EvolvingObjects
eoBitInversion< Chrom > Class Template Reference

eoBitInversion: inverts the bits of the chromosome between an interval More...

#include <ga/eoBitOp.h>

Inheritance diagram for eoBitInversion< 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)
 Inverts a range of bits in a binary chromosome.

Detailed Description

template<class Chrom>
class eoBitInversion< Chrom >

eoBitInversion: inverts the bits of the chromosome between an interval

Definition at line 201 of file eoBitOp.h.


Member Function Documentation

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

Inverts a range of bits in a binary chromosome.

Parameters:
chromThe chromosome whos bits are going to be inverted (a range).

Implements eoUF< Chrom &, bool >.

Definition at line 211 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