X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6a923fd453c6cf3787ae85ebdae7035a46272e03..f602ee5e834cf7bf6d1e1be849daae79a54e7274:/src/kernel/routing/AsImpl.cpp diff --git a/src/kernel/routing/AsImpl.cpp b/src/kernel/routing/AsImpl.cpp index 9fe0cefa82..a0841b9414 100644 --- a/src/kernel/routing/AsImpl.cpp +++ b/src/kernel/routing/AsImpl.cpp @@ -43,6 +43,13 @@ namespace simgrid { void AsImpl::getOneLinkRoutes(std::vector* accumulator) { + // recursing only. I have no route myself :) + char* key; + xbt_dict_cursor_t cursor = nullptr; + AsImpl* rc_child; + xbt_dict_foreach (children(), cursor, key, rc_child) { + rc_child->getOneLinkRoutes(accumulator); + } } /** @brief Get the common ancestor and its first children in each line leading to src and dst