Back to Top page.

EGTElitistSel< TP > Class Template Reference

Derived class template of EGTSelection for an elitist selection algorithm. More...

#include <EGTElitistSel.h>

Inheritance diagram for EGTElitistSel< TP >:

Inheritance graph
[legend]
Collaboration diagram for EGTElitistSel< TP >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef TP Pop
typedef Pop::Graph Graph
typedef EGTVector< const Graph * > Graphs
typedef Graphs::Iterator GraphsIterator
typedef Graphs::ConstIterator GraphsConstIterator

Public Methods

virtual ~EGTElitistSel ()
 Destructor.

virtual void Selection (const Pop &src, Graphs &dest, UInt uCount)
 Performs the elitist selection algorithm.

virtual void Selection (const Pop &src, Pop &dest, UInt uCount)
 Performs elitist selection operations to the Population.


Detailed Description

template<class TP>
class EGTElitistSel< TP >

Derived class template of EGTSelection for an elitist selection algorithm.

It is assumed that <TP> is a subclass of EGTPopulation.


Member Typedef Documentation

template<class TP>
typedef Pop::Graph EGTElitistSel< TP >::Graph
 

Reimplemented from EGTSelection< TP >.

template<class TP>
typedef EGTVector<const Graph*> EGTElitistSel< TP >::Graphs
 

Reimplemented from EGTSelection< TP >.

template<class TP>
typedef Graphs::ConstIterator EGTElitistSel< TP >::GraphsConstIterator
 

template<class TP>
typedef Graphs::Iterator EGTElitistSel< TP >::GraphsIterator
 

template<class TP>
typedef TP EGTElitistSel< TP >::Pop
 

Reimplemented from EGTSelection< TP >.


Constructor & Destructor Documentation

template<class TP>
virtual EGTElitistSel< TP >::~EGTElitistSel   [inline, virtual]
 

Destructor.


Member Function Documentation

template<class TP>
void EGTElitistSel< TP >::Selection const Pop   src,
Pop   dest,
UInt    uCount
[virtual]
 

Performs elitist selection operations to the Population.

Parameters:
src  [in] Population to be performed by the selection operations
dest  [out] Population where the selected Graphs are stored
uCount  [in] Number of Graphs to be selected by the selection operations

Implements EGTSelection< TP >.

template<class TP>
virtual void EGTElitistSel< TP >::Selection const Pop   src,
Graphs   dest,
UInt    uCount
[inline, virtual]
 

Performs the elitist selection algorithm.

Implements EGTSelection< TP >.


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