Archive modified

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1396 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2009-02-03 15:16:17 +00:00
commit c78c4c2f6b
5 changed files with 42 additions and 35 deletions

View file

@ -75,20 +75,22 @@ public:
/**
* Updates the archive with a given individual _moeo
* @param _moeo the given individual
* @return true if _moeo is added to the archive
*/
void operator()(const MOEOT & _moeo)
bool operator()(const MOEOT & _moeo)
{
update(_moeo);
return update(_moeo);
}
/**
* Updates the archive with a given population _pop
* @param _pop the given population
* @return true if a _pop[i] is added to the archive
*/
void operator()(const eoPop < MOEOT > & _pop)
bool operator()(const eoPop < MOEOT > & _pop)
{
update(_pop);
return update(_pop);
}
};