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
Constify getName()/getCname() in s4u::Actor.
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Actor.hpp
diff --git
a/include/simgrid/s4u/Actor.hpp
b/include/simgrid/s4u/Actor.hpp
index
4d2560d
..
210baad
100644
(file)
--- a/
include/simgrid/s4u/Actor.hpp
+++ b/
include/simgrid/s4u/Actor.hpp
@@
-197,10
+197,10
@@
public:
/** This actor will be automatically terminated when the last non-daemon process finishes **/
void daemonize();
/** This actor will be automatically terminated when the last non-daemon process finishes **/
void daemonize();
- /** Retrieves the name of that actor as a C string */
- const char* getCname();
/** Retrieves the name of that actor as a C++ string */
/** Retrieves the name of that actor as a C++ string */
- simgrid::xbt::string getName();
+ const simgrid::xbt::string& getName() const;
+ /** Retrieves the name of that actor as a C string */
+ const char* getCname() const;
/** Retrieves the host on which that actor is running */
s4u::Host* getHost();
/** Retrieves the PID of that actor
/** Retrieves the host on which that actor is running */
s4u::Host* getHost();
/** Retrieves the PID of that actor
@@
-340,6
+340,9
@@
XBT_PUBLIC(aid_t) getPpid();
/** @brief Returns the name of the current actor. */
XBT_PUBLIC(std::string) getName();
/** @brief Returns the name of the current actor. */
XBT_PUBLIC(std::string) getName();
+/** @brief Returns the name of the current actor as a C string. */
+XBT_PUBLIC(const char*) getCname();
+
/** @brief Returns the name of the host on which the process is running. */
XBT_PUBLIC(Host*) getHost();
/** @brief Returns the name of the host on which the process is running. */
XBT_PUBLIC(Host*) getHost();