- 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), 2007
    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 <archive/moeoArchive.h>
    00019
    00023 template < class MOEOT >
    00024 class moeoArchiveUpdater : public eoUpdater
    00025 {
    00026 public:
    00027
    00033     moeoArchiveUpdater(moeoArchive < MOEOT > & _arch, const eoPop < MOEOT > & _pop) : arch(_arch), pop(_pop)
    00034     {}
    00035
    00036
    00040     void operator()() {
    00041         arch.update(pop);
    00042     }
    00043
    00044
    00045 private:
    00046
    00048     moeoArchive < MOEOT > & arch;
    00050     const eoPop < MOEOT > & pop;
    00051
    00052 };
    00053
    00054 #endif /*MOEOARCHIVEUPDATER_H_*/