update comment

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2276 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
boufaras 2011-06-01 08:29:37 +00:00
commit 841e0fc9b6

View file

@ -41,8 +41,7 @@
* Index Neighbor * Index Neighbor
*/ */
template<class EOT, class Fitness = typename EOT::Fitness> template<class EOT, class Fitness = typename EOT::Fitness>
class moIndexNeighbor : virtual public moNeighbor<EOT, Fitness> class moIndexNeighbor: virtual public moNeighbor<EOT, Fitness> {
{
public: public:
using moNeighbor<EOT, Fitness>::fitness; using moNeighbor<EOT, Fitness>::fitness;
@ -50,13 +49,16 @@ public:
/** /**
* Default Constructor * Default Constructor
*/ */
moIndexNeighbor() : moNeighbor<EOT, Fitness>(), key(0) {} moIndexNeighbor() :
moNeighbor<EOT, Fitness> (), key(0) {
}
/** /**
* Copy Constructor * Copy Constructor
* @param _n the neighbor to copy * @param _n the neighbor to copy
*/ */
moIndexNeighbor(const moIndexNeighbor& _n) : moNeighbor<EOT, Fitness>(_n) { moIndexNeighbor(const moIndexNeighbor& _n) :
moNeighbor<EOT, Fitness> (_n) {
this->key = _n.key; this->key = _n.key;
} }
@ -65,12 +67,21 @@ public:
* @param _source the source neighbor * @param _source the source neighbor
*/ */
moIndexNeighbor<EOT, Fitness> & operator=(const moIndexNeighbor<EOT, Fitness> & _source) { moIndexNeighbor<EOT, Fitness> & operator=(const moIndexNeighbor<EOT,
Fitness> & _source) {
moNeighbor<EOT, Fitness>::operator=(_source); moNeighbor<EOT, Fitness>::operator=(_source);
this->key = _source.key; this->key = _source.key;
return *this; return *this;
} }
/**
* Move a solution
* @param _solution the related solution
*/
virtual void move(EOT & _solution) {
}
/** /**
* Return the class Name * Return the class Name
* @return the class name as a std::string * @return the class name as a std::string