+/**
+ * \brief Return the current number of #smx_host_t.
+ *
+ * \return Number of hosts
+ */
+XBT_INLINE int SIMIX_host_get_number(void)
+{
+ return (xbt_dict_size(simix_global->host));
+}
+
+
+/**
+ * \brief Return an array of all the #smx_host_t.
+ *
+ * \return List of all hosts (in a newly allocated table)
+ */
+smx_host_t *SIMIX_host_get_table(void)
+{
+ smx_host_t *res = xbt_new(smx_host_t, xbt_dict_size(simix_global->host));
+ smx_host_t h;
+ xbt_dict_cursor_t c;
+ char *name;
+ int i = 0;
+
+ xbt_dict_foreach(simix_global->host, c, name, h)
+ res[i++] = h;
+
+ return res;
+}
+
+/**
+ * \brief Return a dict of all the #smx_host_t.
+ *
+ * \return List of all hosts (as a #xbt_dict_t)