- Main Page
- Namespaces
- Classes
- Files

- Search for |

# peoSeqPopEval.h

    00001 // "peoSeqPopEval.h"
    00002
    00003 // (c) OPAC Team, LIFL, August 2005
    00004
    00005 /*
    00006    Contact: paradiseo-help@lists.gforge.inria.fr
    00007 */
    00008
    00009 #ifndef __peoSeqPopEval_h
    00010 #define __peoSeqPopEval_h
    00011
    00012 #include <eoEvalFunc.h>
    00013
    00014 #include "peoPopEval.h"
    00015
    00017
    00021 template< class EOT > class peoSeqPopEval : public peoPopEval< EOT > {
    00022
    00023 public:
    00024
    00028         peoSeqPopEval( eoEvalFunc< EOT >& __eval );
    00029
    00033         void operator()( eoPop< EOT >& __pop );
    00034
    00035 private:
    00036
    00037         eoEvalFunc< EOT >& eval;
    00038 };
    00039
    00040
    00041 template< class EOT > peoSeqPopEval< EOT > :: peoSeqPopEval( eoEvalFunc< EOT >& __eval ) : eval( __eval ) {
    00042
    00043 }
    00044
    00045
    00046 template< class EOT > void peoSeqPopEval< EOT > :: operator()( eoPop< EOT >& __pop ) {
    00047
    00048         for ( unsigned i = 0; i < __pop.size(); i++ )
    00049                 eval( __pop[i] );
    00050 }
    00051
    00052
    00053 #endif