#include <string>
#include <vector>
#include <msg/msg.h>
+#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();
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; }
private:
// static list of hostdata's, used by create/destroy
static std::vector<hostdata> hosts;
- struct m_host_less;
const char* name;
std::string ctrl_mbox;