A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rename AsImpl::getRouteRecursive to AsImpl::getGlobalRoute (+doc improvment)
[simgrid.git]
/
src
/
surf
/
surf_routing.cpp
diff --git
a/src/surf/surf_routing.cpp
b/src/surf/surf_routing.cpp
index
596ccee
..
19b30f0
100644
(file)
--- a/
src/surf/surf_routing.cpp
+++ b/
src/surf/surf_routing.cpp
@@
-97,27
+97,7
@@
void RoutingPlatf::getRouteAndLatency(NetCard *src, NetCard *dst, std::vector<Li
{
XBT_DEBUG("getRouteAndLatency from %s to %s", src->name().c_str(), dst->name().c_str());
- AsImpl::getRouteRecursive(src, dst, route, latency);
-}
-
-static void _recursiveGetOneLinkRoutes(AsImpl* as, xbt_dynar_t accumulator)
-{
- //adding my one link routes
- as->getOneLinkRoutes(accumulator);
-
- //recursing
- char *key;
- xbt_dict_cursor_t cursor = nullptr;
- AsImpl *rc_child;
- xbt_dict_foreach(as->children(), cursor, key, rc_child) {
- _recursiveGetOneLinkRoutes(rc_child, accumulator);
- }
-}
-
-xbt_dynar_t RoutingPlatf::getOneLinkRoutes(){
- xbt_dynar_t res = xbt_dynar_new(sizeof(Onelink*), xbt_free_f);
- _recursiveGetOneLinkRoutes(root_, res);
- return res;
+ AsImpl::getGlobalRoute(src, dst, route, latency);
}
}}}