EvolvingObjects
eoFlOrKAtomBinOp< EOT > Class Template Reference

Bin Crossover using an Atom Crossover that is applied to a FIXED NB of components. More...

#include <eoFlOrBinOp.h>

Inheritance diagram for eoFlOrKAtomBinOp< EOT >:
eoBinOp< EOT > eoOp< EOT > eoBF< EOT &, const EOT &, bool > eoFunctorBase binary_function

List of all members.

Public Types

typedef EOT::AtomType AtomType

Public Member Functions

 eoFlOrAtomBinOp (eoBinOp< AtomType > &_op, unsigned _k=1)
 default ctor: requires an Atom BinOp and an unsigned
bool operator() (EOT &_eo1, const EOT &_eo2)
 applies the Atom BinOp to some components
virtual string className () const
 inherited className()

Private Attributes

unsigned k
eoBinOp< AtomType > & op

Detailed Description

template<class EOT>
class eoFlOrKAtomBinOp< EOT >

Bin Crossover using an Atom Crossover that is applied to a FIXED NB of components.

Definition at line 96 of file eoFlOrBinOp.h.


Member Function Documentation

template<class EOT >
bool eoFlOrKAtomBinOp< EOT >::operator() ( EOT &  _eo1,
const EOT &  _eo2 
) [inline, virtual]

applies the Atom BinOp to some components

Todo:
check that we don't do twice the same

Implements eoBF< EOT &, const EOT &, bool >.

Definition at line 107 of file eoFlOrBinOp.h.

References eoFlOrKAtomBinOp< EOT >::className(), and eoRng::random().


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