7 #include "simgrid_features.h"
9 // Helper class that associates instances of itself with each host.
10 // Facilitate global operations on hosts, and retreiving of host name
15 static void destroy();
16 static size_t size() { return hosts.size(); }
17 static const hostdata& at(size_t i) { return hosts[i]; }
19 hostdata(msg_host_t host);
22 const char* get_name() const { return name; }
23 const char* get_ctrl_mbox() const { return ctrl_mbox.c_str(); }
24 const char* get_data_mbox() const { return data_mbox.c_str(); }
27 // static list of hostdata's, used by create/destroy
28 static std::vector<hostdata> hosts;
31 std::string ctrl_mbox;
32 std::string data_mbox;