X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/07c12189c716ea527ddcf8f8b55983213dead2bf..5be6b677d03fe86873a5987f577db57c8a362ee5:/include/simgrid/s4u/NetZone.hpp diff --git a/include/simgrid/s4u/NetZone.hpp b/include/simgrid/s4u/NetZone.hpp index 155a95cf56..b3b3c18293 100644 --- a/include/simgrid/s4u/NetZone.hpp +++ b/include/simgrid/s4u/NetZone.hpp @@ -40,6 +40,7 @@ protected: explicit NetZone(NetZone * father, const char* name); virtual ~NetZone(); + std::vector hosts_; public: /** @brief Seal your netzone once you're done adding content, and before routing stuff through it */ @@ -47,8 +48,8 @@ public: char* name(); NetZone* father(); - xbt_dict_t children(); // Sub netzones - xbt_dynar_t hosts(); // my content as a dynar + std::vector* children(); // Sub netzones + std::vector* hosts(); // my content as a vector of hosts /** Get the properties assigned to a host */ std::unordered_map* properties(); @@ -65,7 +66,7 @@ public: /*** Called on each newly created regular route (not on bypass routes) */ static simgrid::xbt::signal* link_list)> + std::vector* link_list)> onRouteCreation; protected: @@ -79,7 +80,7 @@ private: bool sealed_ = false; // We cannot add more content when sealed - xbt_dict_t children_ = xbt_dict_new_homogeneous(nullptr); // sub-netzones + std::vector* children_ = nullptr; // sub-netzones }; } }; // Namespace simgrid::s4u