X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/edd8fe372faebd0f80de0d8facb8f5e9ad15952d..9ceefed14c83a0f6ea5f78e3acafd53181dc4fa1:/include/simgrid/s4u/NetZone.hpp diff --git a/include/simgrid/s4u/NetZone.hpp b/include/simgrid/s4u/NetZone.hpp index d2d706e79f..6c0f3e7306 100644 --- a/include/simgrid/s4u/NetZone.hpp +++ b/include/simgrid/s4u/NetZone.hpp @@ -69,7 +69,7 @@ public: std::map>* edges); /* Add content to the netzone, at parsing time. It should be sealed afterward. */ - int add_component(kernel::routing::NetPoint* elm); /* A host, a router or a netzone, whatever */ + unsigned long add_component(kernel::routing::NetPoint* elm); /* A host, a router or a netzone, whatever */ /** * @brief Add a route between 2 netpoints @@ -211,7 +211,7 @@ struct ClusterCallbacks { * @return pair: returns a pair of netpoint and gateway. */ using ClusterNetPointCb = std::pair( - NetZone* zone, const std::vector& coord, int id); + NetZone* zone, const std::vector& coord, unsigned long id); /** * @brief Callback used to set the links for some leaf of the cluster (Torus, FatTree, etc) * @@ -227,7 +227,7 @@ struct ClusterCallbacks { * @param id: Internal identifier of the element * @return Pointer to the Link */ - using ClusterLinkCb = Link*(NetZone* zone, const std::vector& coord, int id); + using ClusterLinkCb = Link*(NetZone* zone, const std::vector& coord, unsigned long id); std::function netpoint; std::function loopback = {}; @@ -264,7 +264,7 @@ struct ClusterCallbacks { * @return Pointer to new netzone */ XBT_PUBLIC NetZone* create_torus_zone(const std::string& name, const NetZone* parent, - const std::vector& dimensions, + const std::vector& dimensions, const ClusterCallbacks& set_callbacks, double bandwidth, double latency, Link::SharingPolicy sharing_policy);