- Main Page
- Classes
- Files

- Search for |

# moeoArchiveUpdater.h

    00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
    00002
    00003 //-----------------------------------------------------------------------------
    00004 // moeoArchiveUpdater.h
    00005 // (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2006
    00006 /*
    00007     This library...
    00008
    00009     Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr
    00010  */
    00011 //-----------------------------------------------------------------------------
    00012
    00013 #ifndef MOEOARCHIVEUPDATER_H_
    00014 #define MOEOARCHIVEUPDATER_H_
    00015
    00016 #include <eoPop.h>
    00017 #include <utils/eoUpdater.h>
    00018 #include <moeoArchive.h>
    00019
    00023 template < class EOT > class moeoArchiveUpdater:public eoUpdater
    00024 {
    00025 public:
    00026
    00032   moeoArchiveUpdater (moeoArchive < EOT > &_arch,
    00033                       const eoPop < EOT > &_pop):arch (_arch), pop (_pop)
    00034   {
    00035   }
    00036
    00037
    00041   void operator () ()
    00042   {
    00043     arch.update (pop);
    00044   }
    00045
    00046
    00047 private:
    00048
    00050   moeoArchive < EOT > &arch;
    00052   const eoPop < EOT > &pop;
    00053
    00054 };
    00055
    00056 #endif /*MOEOARCHIVEUPDATER_H_ */