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
give a default value at field declaration, not everywhere in subclasses
[simgrid.git]
/
src
/
surf
/
surf_routing_floyd.cpp
diff --git
a/src/surf/surf_routing_floyd.cpp
b/src/surf/surf_routing_floyd.cpp
index
adc6a53
..
8309a02
100644
(file)
--- a/
src/surf/surf_routing_floyd.cpp
+++ b/
src/surf/surf_routing_floyd.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2009-201
4
. The SimGrid Team.
+/* Copyright (c) 2009-201
5
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-15,14
+15,17
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_floyd, surf, "Routing part of surf");
AS_t model_floyd_create(void)
{
AS_t model_floyd_create(void)
{
- return new AsFloyd();
+ return new
simgrid::surf::
AsFloyd();
}
void model_floyd_end(AS_t current_routing)
{
}
void model_floyd_end(AS_t current_routing)
{
- static_cast<AsFloyd*>(current_routing)->end();
+ static_cast<
simgrid::surf::
AsFloyd*>(current_routing)->end();
}
}
+namespace simgrid {
+namespace surf {
+
AsFloyd::AsFloyd(): AsGeneric() {
p_predecessorTable = NULL;
p_costTable = NULL;
AsFloyd::AsFloyd(): AsGeneric() {
p_predecessorTable = NULL;
p_costTable = NULL;
@@
-319,3
+322,6
@@
void AsFloyd::end(){
}
}
}
}
}
}
+
+}
+}