Template Fitness dans les Neighbor enlevés. On le déduit de EOT.

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1734 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-04-08 10:12:00 +00:00
commit 67a701f9ff
17 changed files with 51 additions and 56 deletions

View file

@ -40,30 +40,30 @@
/**
* Index Neighbor
*/
template< class EOT , class Fitness >
class moIndexNeighbor : virtual public moNeighbor<EOT, Fitness>
template< class EOT >
class moIndexNeighbor : virtual public moNeighbor<EOT>
{
public:
using moNeighbor<EOT, Fitness>::fitness;
using moNeighbor<EOT>::fitness;
/**
* Default Constructor
*/
moIndexNeighbor() : moNeighbor<EOT, Fitness>(), key(0) {}
moIndexNeighbor() : moNeighbor<EOT>(), key(0) {}
/**
* Copy Constructor
*/
moIndexNeighbor(const moIndexNeighbor& _n) : moNeighbor<EOT, Fitness>(_n) {
moIndexNeighbor(const moIndexNeighbor& _n) : moNeighbor<EOT>(_n) {
this->key = _n.key ;
}
/**
* Assignment operator
*/
virtual moIndexNeighbor<EOT, Fitness> & operator=(const moIndexNeighbor<EOT, Fitness> & _source) {
moNeighbor<EOT, Fitness>::operator=(_source);
virtual moIndexNeighbor<EOT> & operator=(const moIndexNeighbor<EOT> & _source) {
moNeighbor<EOT>::operator=(_source);
this->key = _source.key ;
return *this ;
}