test and documentation added

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1699 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-03-18 13:25:21 +00:00
commit 500987685b
5 changed files with 185 additions and 41 deletions

View file

@ -47,6 +47,9 @@
#include <neighborhood/moOrderNeighborhood.h>
#include <neighborhood/moBitNeighbor.h>
#include <utils/eoMonitor.h>
#include <utils/eoUpdater.h>
typedef eoBit<eoMinimizingFitness> bitVector;
typedef moBitNeighbor<eoMinimizingFitness> bitNeighbor ;
typedef moOrderNeighborhood<bitNeighbor> bitNeighborhood ;
@ -120,4 +123,59 @@ public:
}
};
class monitor1 : public eoMonitor
{
public:
monitor1(unsigned int& _a): a(_a){}
eoMonitor& operator()(){
a++;
return *this;
}
void lastCall(){
a++;
}
private:
unsigned int& a;
};
class monitor2 : public eoMonitor
{
public:
monitor2(unsigned int& _a): a(_a){}
eoMonitor& operator()(){
a++;
return *this;
}
void lastCall(){
a++;
}
private:
unsigned int& a;
};
class updater1: public eoUpdater
{
public:
updater1(unsigned int& _a): a(_a){}
void operator()(){
a++;
}
void lastCall(){
a++;
}
private:
unsigned int& a;
};
#endif