eoNPtsBitXover< Chrom > Class Template Reference

eoNPtsBitXover --> n-point crossover More...

#include <ga/eoBitOp.h>

Inheritance diagram for eoNPtsBitXover< Chrom >:
eoQuadOp< Chrom > eoOp< Chrom > eoBF< Chrom &, Chrom &, bool > eoFunctorBase binary_function

List of all members.

Public Member Functions

 eoNPtsBitXover (const unsigned &_num_points=2)
 (Default) Constructor.
virtual std::string className () const
 The class name.
bool operator() (Chrom &chrom1, Chrom &chrom2)
 n-point crossover for binary chromosomes.

Private Attributes

unsigned num_points

Detailed Description

template<class Chrom>
class eoNPtsBitXover< Chrom >

eoNPtsBitXover --> n-point crossover

Definition at line 373 of file eoBitOp.h.

Constructor & Destructor Documentation

template<class Chrom>
eoNPtsBitXover< Chrom >::eoNPtsBitXover ( const unsigned &  _num_points = 2) [inline]

(Default) Constructor.

Definition at line 378 of file eoBitOp.h.

References eoNPtsBitXover< Chrom >::num_points.

Member Function Documentation

template<class Chrom>
bool eoNPtsBitXover< Chrom >::operator() ( Chrom &  chrom1,
Chrom &  chrom2 
) [inline, virtual]

n-point crossover for binary chromosomes.

chrom1The first chromosome.
chrom2The first chromosome.

Implements eoBF< Chrom &, Chrom &, bool >.

Definition at line 392 of file eoBitOp.h.

References eoNPtsBitXover< Chrom >::num_points.

Member Data Documentation

template<class Chrom>
unsigned eoNPtsBitXover< Chrom >::num_points [private]
Document this data member

Definition at line 425 of file eoBitOp.h.

Referenced by eoNPtsBitXover< Chrom >::eoNPtsBitXover(), and eoNPtsBitXover< Chrom >::operator()().

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