X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72bcdd6c079bd27b3e4e1e5a5552ca97a4f2bf19..79ba0e25e50b8ecaf5fd4df7ca4fd39e6e3ac232:/src/s4u/s4u_engine.cpp diff --git a/src/s4u/s4u_engine.cpp b/src/s4u/s4u_engine.cpp index c16b189cf7..886cc33a91 100644 --- a/src/s4u/s4u_engine.cpp +++ b/src/s4u/s4u_engine.cpp @@ -93,6 +93,16 @@ void Engine::getHostList(std::vector* list) for (auto const& kv : host_list) list->push_back(kv.second); } +/** @brief Returns the amount of links in the platform */ +size_t Engine::getLinkCount() +{ + return simgrid::surf::LinkImpl::linksCount(); +} +/** @brief Fills the passed list with all hosts found in the platform */ +void Engine::getLinkList(std::vector* list) +{ + simgrid::surf::LinkImpl::linksList(list); +} void Engine::run() { if (MC_is_active()) {