X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/d43e446400ac7b65d7d2dd3acd57f8f669484449..HEAD:/hostdata.h?ds=sidebyside diff --git a/hostdata.h b/hostdata.h index 59ca35d..2c5379a 100644 --- a/hostdata.h +++ b/hostdata.h @@ -3,8 +3,12 @@ #include #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;