From f4e2451762f0d17d56ee360f89c277baf182807c Mon Sep 17 00:00:00 2001 From: liefooga Date: Thu, 21 Jun 2007 15:28:44 +0000 Subject: [PATCH] add inhertis moeoAlgo git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@357 331e1502-861f-0410-8da2-ba01fb791d7f --- branches/paradiseo-moeo-1.0/src/moeoEA.h | 3 ++- branches/paradiseo-moeo-1.0/src/moeoLS.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/branches/paradiseo-moeo-1.0/src/moeoEA.h b/branches/paradiseo-moeo-1.0/src/moeoEA.h index 901dba540..36d115ead 100644 --- a/branches/paradiseo-moeo-1.0/src/moeoEA.h +++ b/branches/paradiseo-moeo-1.0/src/moeoEA.h @@ -14,12 +14,13 @@ #define MOEOEA_H_ #include +#include /** * Abstract class for multi-objective evolutionary algorithms. */ template < class MOEOT > -class moeoEA : public eoAlgo < MOEOT > {}; +class moeoEA : public moeoAlgo, public eoAlgo < MOEOT > {}; #endif /*MOEOEA_H_*/ diff --git a/branches/paradiseo-moeo-1.0/src/moeoLS.h b/branches/paradiseo-moeo-1.0/src/moeoLS.h index 41edcccd6..5fa86308f 100644 --- a/branches/paradiseo-moeo-1.0/src/moeoLS.h +++ b/branches/paradiseo-moeo-1.0/src/moeoLS.h @@ -14,6 +14,7 @@ #define MOEOLS_H_ #include +#include #include /** @@ -21,7 +22,7 @@ * Starting from a Type (i.e.: an individual, a pop, an archive...), it produces a set of new non-dominated solutions. */ template < class MOEOT, class Type > -class moeoLS: public eoBF < Type, moeoArchive < MOEOT > &, void > +class moeoLS: public moeoAlgo, public eoBF < Type, moeoArchive < MOEOT > &, void > {}; #endif /*MOEOLS_H_*/