X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/54b37498c22fb09b89b05b253b8ac57c1b109a24..af35c0c75c52b0cf5d0518656473503f67a79613:/process.h?ds=sidebyside diff --git a/process.h b/process.h index 86f1f9b..152f5ed 100644 --- a/process.h +++ b/process.h @@ -132,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: