X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1ca34b76da924ef9743ce07316d18e69ba45374f..38fa7b2d3e69aa9aa4957b2b847bec34bc1096ac:/src/surf/network_interface.hpp diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index 8caa9df504..4c71d84d02 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -9,7 +9,7 @@ #include -#include +#include #include "xbt/fifo.h" #include "xbt/dict.h" @@ -77,7 +77,7 @@ namespace simgrid { * unlimited. * @return The action representing the communication */ - virtual Action *communicate(routing::NetCard *src, routing::NetCard *dst, double size, double rate)=0; + virtual Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate)=0; /** @brief Function pointer to the function to use to solve the lmm_system_t * @@ -151,19 +151,19 @@ namespace simgrid { public: /** @brief Callback signal fired when a new Link is created. * Signature: void(Link*) */ - static simgrid::xbt::signal onCreation; + static simgrid::xbt::signal onCreation; /** @brief Callback signal fired when a Link is destroyed. * Signature: void(Link*) */ - static simgrid::xbt::signal onDestruction; + static simgrid::xbt::signal onDestruction; /** @brief Callback signal fired when the state of a Link changes (when it is turned on or off) * Signature: `void(Link*)` */ - static simgrid::xbt::signal onStateChange; + static simgrid::xbt::signal onStateChange; /** @brief Callback signal fired when a communication starts * Signature: `void(NetworkAction *action, RoutingEdge *src, RoutingEdge *dst)` */ - static simgrid::xbt::signal onCommunicate; + static simgrid::xbt::signal onCommunicate; @@ -203,9 +203,9 @@ namespace simgrid { private: void *userData = nullptr; - /* List of all links */ + /* List of all links. FIXME: should move to the Engine */ private: - static boost::unordered_map *links; + static std::unordered_map *links; public: static Link *byName(const char* name); static int linksCount();