X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/c771a55e40d2a41d607a0da1b67cd1f7d546ccc8..4f8948b8f67d26726a2e53c9afe1a110c037ce4b:/process.h?ds=sidebyside diff --git a/process.h b/process.h index a49c6ef..5802426 100644 --- a/process.h +++ b/process.h @@ -1,8 +1,17 @@ #ifndef PROCESS_H #define PROCESS_H -#include +#define USE_UNORDERED_MAP 1 +//#undef USE_UNORDERED_MAP + #include +#ifdef USE_UNORDERED_MAP +# include +# define MAP_TEMPLATE std::tr1::unordered_map +#else +# include +# define MAP_TEMPLATE std::map +#endif #include #include "communicator.h" #include "neighbor.h" @@ -10,12 +19,13 @@ class process { public: process(int argc, char* argv[]); - ~process() { }; + ~process(); int run(); private: std::vector neigh; - std::map rev_neigh; + MAP_TEMPLATE rev_neigh; + std::vector pneigh; communicator comm; int ctrl_close_pending;