add equal comparator between 2 neighbors and between 1 sol and 1 neighbor

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2020 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
marieeleonore 2010-12-14 10:25:17 +00:00
commit 6095a66005
8 changed files with 157 additions and 9 deletions

View file

@ -49,7 +49,7 @@ public :
/**
* Default Constructor
*/
moBooleanStat(bool & _b): moStat<EOT, bool>(_b, "boolean"), b(_b) {
moBooleanStat(bool * _b): moStat<EOT, bool>(*_b, "boolean"), b(_b) {
}
/**
@ -57,7 +57,7 @@ public :
* @param _sol a solution
*/
virtual void init(EOT & _sol) {
value() = b;
value() = *b;
}
/**
@ -65,7 +65,7 @@ public :
* @param _sol a solution
*/
virtual void operator()(EOT & _sol) {
value() = b;
value() = *b;
}
/**
@ -76,7 +76,7 @@ public :
}
private:
bool & b;
bool * b;
};
#endif