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
[surf] Move some code in a simgrid::surf namespace
[simgrid.git]
/
src
/
surf
/
surf_routing_none.cpp
diff --git
a/src/surf/surf_routing_none.cpp
b/src/surf/surf_routing_none.cpp
index
4995469
..
1906047
100644
(file)
--- a/
src/surf/surf_routing_none.cpp
+++ b/
src/surf/surf_routing_none.cpp
@@
-10,14
+10,17
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_none, surf, "Routing part of surf");
AS_t model_none_create(void)
{
AS_t model_none_create(void)
{
- return new AsNone();
+ return new
simgrid::surf::
AsNone();
}
}
+namespace simgrid {
+namespace surf {
+
xbt_dynar_t AsNone::getOneLinkRoutes() {
return NULL;
}
xbt_dynar_t AsNone::getOneLinkRoutes() {
return NULL;
}
-void AsNone::getRouteAndLatency(RoutingEdge *
/*src*/, RoutingEdge *
/*dst*/,
+void AsNone::getRouteAndLatency(RoutingEdge *
/*src*/, RoutingEdge *
/*dst*/,
sg_platf_route_cbarg_t /*res*/, double *lat)
{
*lat = 0.0;
sg_platf_route_cbarg_t /*res*/, double *lat)
{
*lat = 0.0;
@@
-28,7
+31,7
@@
void AsNone::getGraph(xbt_graph_t /*graph*/, xbt_dict_t /*nodes*/, xbt_dict_t /*
XBT_INFO("No routing no graph");
}
XBT_INFO("No routing no graph");
}
-sg_platf_route_cbarg_t AsNone::getBypassRoute(RoutingEdge *
/*src*/, RoutingEdge */*dst*/, double *
/*lat*/) {
+sg_platf_route_cbarg_t AsNone::getBypassRoute(RoutingEdge *
/*src*/, RoutingEdge * /*dst*/, double *
/*lat*/) {
return NULL;
}
return NULL;
}
@@
-70,3
+73,5
@@
AsNone::~AsNone() {
xbt_dynar_free(&p_linkUpDownList);
}
xbt_dynar_free(&p_linkUpDownList);
}
+}
+}