X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/d43e446400ac7b65d7d2dd3acd57f8f669484449..324204969dba501413a9f62de983806a6fddd6a0:/hostdata.h?ds=sidebyside diff --git a/hostdata.h b/hostdata.h index 59ca35d..aa7884c 100644 --- a/hostdata.h +++ b/hostdata.h @@ -4,7 +4,11 @@ #include #include #include +#include "simgrid_features.h" +// Helper class that associates instances of itself with each host. +// Facilitate global operations on hosts, and retreiving of host name +// and mailboxes. class hostdata { public: static void create(); @@ -12,7 +16,7 @@ public: static size_t size() { return hosts.size(); } static const hostdata& at(size_t i) { return hosts[i]; } - hostdata(m_host_t host); + hostdata(msg_host_t host); ~hostdata(); const char* get_name() const { return name; } @@ -22,7 +26,6 @@ public: private: // static list of hostdata's, used by create/destroy static std::vector hosts; - struct m_host_less; const char* name; std::string ctrl_mbox;