- Main Page
- Namespaces
- Classes
- Files

- Search for |

# eoPop_comm.h

    00001 // "eoPop_comm.h"
    00002
    00003 // (c) OPAC Team, LIFL, August 2005
    00004
    00005 /*
    00006    Contact: paradiseo-help@lists.gforge.inria.fr
    00007 */
    00008
    00009 #ifndef __eoPop_comm_h
    00010 #define __eoPop_comm_h
    00011
    00012 #include <eoPop.h>
    00013
    00014 #include "messaging.h"
    00015
    00016 template <class EOT> void pack (const eoPop <EOT> & __pop) {
    00017
    00018   pack ((unsigned) __pop.size ());
    00019   for (unsigned i = 0; i < __pop.size (); i ++)
    00020     pack (__pop [i]);
    00021 }
    00022
    00023 template <class EOT> void unpack (eoPop <EOT> & __pop) {
    00024
    00025   unsigned n;
    00026
    00027   unpack (n);
    00028   __pop.resize (n);
    00029   for (unsigned i = 0; i < n; i ++)
    00030     unpack (__pop [i]);
    00031 }
    00032 #endif