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

@ -43,11 +43,12 @@
/**
* Container of the neighbor informations
*/
template< class EOType , class Fitness >
template< class EOType >
class moNeighbor : public eoObject, public eoPersistent
{
public:
typedef EOType EOT;
typedef typename EOT::Fitness Fitness;
/**
* Default Constructor
*/
@ -57,7 +58,7 @@ public:
* Copy Constructor
* @param _neighbor to copy
*/
moNeighbor(const moNeighbor<EOT, Fitness>& _neighbor) {
moNeighbor(const moNeighbor<EOT>& _neighbor) {
repFitness = _neighbor.fitness();
}
@ -66,7 +67,7 @@ public:
* @param _neighbor the neighbor to assign
* @return a neighbor equal to the other
*/
virtual moNeighbor<EOT, Fitness>& operator=(const moNeighbor<EOT, Fitness>& _neighbor) {
virtual moNeighbor<EOT>& operator=(const moNeighbor<EOT>& _neighbor) {
repFitness = _neighbor.fitness();
return (*this);
}