eoParticleBestUpdater.h

00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
00002 
00003 //-----------------------------------------------------------------------------
00004 // eoParticleBestUpdater.h
00005 // (c) OPAC 2007
00006 /*
00007     Contact: paradiseo-help@lists.gforge.inria.fr
00008  */
00009 //-----------------------------------------------------------------------------
00010 
00011 #ifndef EOPARTICLEBESTUPDATER_H
00012 #define EOPARTICLEBESTUPDATER_H
00013 //-----------------------------------------------------------------------------
00014 
00015 #include <eoFunctor.h>
00016 #include <eoPop.h>
00017 
00018 
00020 template < class POT > class eoParticleBestUpdater:public eoUF < POT &, void >
00021 {
00022 public:
00024     virtual void apply (eoPop < POT > &_pop)
00025     {
00026         for (unsigned i = 0; i < _pop.size (); i++)
00027         {
00028             operator  ()(_pop[i]);
00029         }
00030     }
00031 };
00032 
00033 #endif /*EOPARTICLEBESTUPDATER_H */

Generated on Thu Apr 19 11:02:27 2007 for EO by  doxygen 1.4.7