X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/4e922bca67d7cf4bc30a878cd7cd46d39fbe1573..8962655b3bb6d959c12a4bd9d6e1c0ddce6047cf:/process.h diff --git a/process.h b/process.h index 24d4c39..152f5ed 100644 --- a/process.h +++ b/process.h @@ -15,6 +15,7 @@ #include #include #include "communicator.h" +#include "misc.h" #include "neighbor.h" #include "options.h" @@ -131,6 +132,20 @@ void process::set_load(double load) real_load = load; } +struct pneigh_load_less { + bool operator()(const neighbor* a, const neighbor* b) + { + return a->get_load() < b->get_load(); + } +}; + +struct pneigh_load_greater { + bool operator()(const neighbor* a, const neighbor* b) + { + return a->get_load() > b->get_load(); + } +}; + #endif // !PROCESS_H // Local variables: