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 p_netcard to simgrid::Host instead of relying on extensions for that
[simgrid.git]
/
src
/
surf
/
surf_routing.hpp
diff --git
a/src/surf/surf_routing.hpp
b/src/surf/surf_routing.hpp
index
0b6fb74
..
6ed29be
100644
(file)
--- a/
src/surf/surf_routing.hpp
+++ b/
src/surf/surf_routing.hpp
@@
-100,11
+100,11
@@
public:
virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
};
virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
};
-struct XBT_PRIVATE
RoutingEdge
Impl : public NetCard {
+struct XBT_PRIVATE
NetCard
Impl : public NetCard {
public:
public:
-
RoutingEdge
Impl(char *name, int id, e_surf_network_element_type_t rcType, As *rcComponent)
+
NetCard
Impl(char *name, int id, e_surf_network_element_type_t rcType, As *rcComponent)
: p_rcComponent(rcComponent), p_rcType(rcType), m_id(id), p_name(name) {}
: p_rcComponent(rcComponent), p_rcType(rcType), m_id(id), p_name(name) {}
- ~
RoutingEdge
Impl() { xbt_free(p_name);};
+ ~
NetCard
Impl() { xbt_free(p_name);};
int getId() {return m_id;}
int *getIdPtr() {return &m_id;}
int getId() {return m_id;}
int *getIdPtr() {return &m_id;}