Encore de la doc
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1660 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
278c0e70ab
commit
9cf5680823
7 changed files with 153 additions and 176 deletions
|
|
@ -4,30 +4,31 @@
|
|||
#include <continuator/moContinuator.h>
|
||||
|
||||
/**
|
||||
to make specific continuator from a solution
|
||||
*/
|
||||
* Continuator always return True
|
||||
*/
|
||||
template< class NH >
|
||||
class moTrueContinuator : public moContinuator<NH>
|
||||
{
|
||||
public:
|
||||
typedef NH Neighborhood ;
|
||||
typedef typename Neighborhood::EOT EOT ;
|
||||
typedef typename NH::EOT EOT ;
|
||||
|
||||
// empty constructor
|
||||
moTrueContinuator() { i=0;} ;
|
||||
moTrueContinuator() {} ;
|
||||
|
||||
/**
|
||||
always true
|
||||
*/
|
||||
virtual bool operator()(EOT & solution) {
|
||||
i++;
|
||||
return i<10;
|
||||
};
|
||||
|
||||
virtual void init(EOT & solution) {
|
||||
*@param _solution a solution
|
||||
*@return always true
|
||||
*/
|
||||
virtual bool operator()(EOT & _solution) {
|
||||
return true;
|
||||
}
|
||||
|
||||
int i;
|
||||
/**
|
||||
* NOTHING TO DO
|
||||
* @param _solution a solution
|
||||
*/
|
||||
virtual void init(EOT & _solution) {}
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue