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
API format unification
[simgrid.git]
/
src
/
surf
/
surf_routing.hpp
diff --git
a/src/surf/surf_routing.hpp
b/src/surf/surf_routing.hpp
index
56b5146
..
5e096ce
100644
(file)
--- a/
src/surf/surf_routing.hpp
+++ b/
src/surf/surf_routing.hpp
@@
-45,7
+45,7
@@
class RoutingPlatf;
class NetCard {
public:
virtual ~NetCard(){};
class NetCard {
public:
virtual ~NetCard(){};
- virtual int id()=0; // Our rank in the vertices_ array of our containing AS.
+ virtual
unsigned
int id()=0; // Our rank in the vertices_ array of our containing AS.
virtual char *name()=0;
virtual AsImpl *containingAS()=0; // This is the AS in which I am
virtual bool isAS()=0;
virtual char *name()=0;
virtual AsImpl *containingAS()=0; // This is the AS in which I am
virtual bool isAS()=0;
@@
-69,7
+69,7
@@
public:
}
~NetCardImpl() { xbt_free(name_);};
}
~NetCardImpl() { xbt_free(name_);};
-
int id()
override {return id_;}
+
unsigned int id()
override {return id_;}
char *name() override {return name_;}
AsImpl *containingAS() override {return containingAS_;}
char *name() override {return name_;}
AsImpl *containingAS() override {return containingAS_;}
@@
-78,7
+78,7
@@
public:
bool isRouter() override {return componentType_ == Type::Router;}
private:
bool isRouter() override {return componentType_ == Type::Router;}
private:
-
int id_ = -1
;
+
unsigned int id_
;
char *name_;
NetCard::Type componentType_;
AsImpl *containingAS_;
char *name_;
NetCard::Type componentType_;
AsImpl *containingAS_;