Début du dev de newMo
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1639 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
25c45dd1fa
commit
e13fd250d1
34 changed files with 1946 additions and 48 deletions
42
branches/newMo/src/continuator/moTrueContinuator.h
Normal file
42
branches/newMo/src/continuator/moTrueContinuator.h
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#ifndef _moTrueContinuator_h
|
||||
#define _moTrueContinuator_h
|
||||
|
||||
#include <continuator/moContinuator.h>
|
||||
|
||||
/*
|
||||
to make specific continuator from a solution
|
||||
*/
|
||||
template< class NH >
|
||||
class moTrueContinuator : public moContinuator<NH>
|
||||
{
|
||||
public:
|
||||
typedef NH Neighborhood ;
|
||||
typedef typename Neighborhood::EOT EOT ;
|
||||
|
||||
// empty constructor
|
||||
moTrueContinuator() { i=0;} ;
|
||||
|
||||
/*
|
||||
always true
|
||||
*/
|
||||
virtual bool operator()(EOT & solution) {
|
||||
i++;
|
||||
return i<10;
|
||||
};
|
||||
|
||||
virtual void init(EOT & solution) {
|
||||
}
|
||||
|
||||
int i;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
// Local Variables:
|
||||
// coding: iso-8859-1
|
||||
// mode: C++
|
||||
// c-file-offsets: ((c . 0))
|
||||
// c-file-style: "Stroustrup"
|
||||
// fill-column: 80
|
||||
// End:
|
||||
Loading…
Add table
Add a link
Reference in a new issue