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
make piface_ private and have get_iface() everywhere
[simgrid.git]
/
src
/
surf
/
HostImpl.cpp
diff --git
a/src/surf/HostImpl.cpp
b/src/surf/HostImpl.cpp
index
d2f6a48
..
86b966d
100644
(file)
--- a/
src/surf/HostImpl.cpp
+++ b/
src/surf/HostImpl.cpp
@@
-153,7
+153,7
@@
std::vector<s4u::Disk*> HostImpl::get_disks()
{
std::vector<s4u::Disk*> disks;
for (auto const& d : disks_)
- disks.push_back(
&d->piface_
);
+ disks.push_back(
d->get_iface()
);
return disks;
}
@@
-179,7
+179,7
@@
std::vector<const char*> HostImpl::get_attached_storages()
std::vector<const char*> storages;
for (auto const& s : storage_)
if (s.second->get_host() == piface_->get_cname())
- storages.push_back(s.second->
piface_.
get_cname());
+ storages.push_back(s.second->
get_iface()->
get_cname());
return storages;
}