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
Cosmetics: s/free/xbt_free.
[simgrid.git]
/
src
/
surf
/
network_interface.hpp
diff --git
a/src/surf/network_interface.hpp
b/src/surf/network_interface.hpp
index
be48491
..
14a1518
100644
(file)
--- a/
src/surf/network_interface.hpp
+++ b/
src/surf/network_interface.hpp
@@
-43,7
+43,7
@@
public:
* @param latency The initial latency of the Link in seconds
* @param policy The sharing policy of the Link
*/
* @param latency The initial latency of the Link in seconds
* @param policy The sharing policy of the Link
*/
- virtual LinkImpl* createLink(const
char*
name, double bandwidth, double latency,
+ virtual LinkImpl* createLink(const
std::string&
name, double bandwidth, double latency,
e_surf_link_sharing_policy_t policy) = 0;
/**
e_surf_link_sharing_policy_t policy) = 0;
/**
@@
-114,7
+114,7
@@
public:
*/
class LinkImpl : public simgrid::surf::Resource, public simgrid::surf::PropertyHolder {
protected:
*/
class LinkImpl : public simgrid::surf::Resource, public simgrid::surf::PropertyHolder {
protected:
- LinkImpl(simgrid::surf::NetworkModel* model, const
char*
name, lmm_constraint_t constraint);
+ LinkImpl(simgrid::surf::NetworkModel* model, const
std::string&
name, lmm_constraint_t constraint);
~LinkImpl() override;
public:
~LinkImpl() override;
public:
@@
-208,10
+208,10
@@
public:
void setState(simgrid::surf::Action::State state) override;
virtual std::list<LinkImpl*> links();
void setState(simgrid::surf::Action::State state) override;
virtual std::list<LinkImpl*> links();
- double latency_;
- double latCurrent_;
- double weight_;
- double rate_;
+ double latency_
= {}
;
+ double latCurrent_
= {}
;
+ double weight_
= {}
;
+ double rate_
= {}
;
};
}
}
};
}
}