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
[sonar] bunch of const
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Comm.hpp
diff --git
a/include/simgrid/s4u/Comm.hpp
b/include/simgrid/s4u/Comm.hpp
index
6806ed9
..
bee49b3
100644
(file)
--- a/
include/simgrid/s4u/Comm.hpp
+++ b/
include/simgrid/s4u/Comm.hpp
@@
-108,9
+108,9
@@
public:
/** Set the source and destination of communications that bypass the mailbox mechanism */
CommPtr set_source(Host* from);
/** Set the source and destination of communications that bypass the mailbox mechanism */
CommPtr set_source(Host* from);
- Host* get_source() { return from_; }
+ Host* get_source()
const
{ return from_; }
CommPtr set_destination(Host* to);
CommPtr set_destination(Host* to);
- Host* get_destination() { return to_; }
+ Host* get_destination()
const
{ return to_; }
/** Sets the maximal communication rate (in byte/sec). Must be done before start */
CommPtr set_rate(double rate);
/** Sets the maximal communication rate (in byte/sec). Must be done before start */
CommPtr set_rate(double rate);