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
AS->Zone + stringification
[simgrid.git]
/
include
/
simgrid
/
s4u
/
NetZone.hpp
diff --git
a/include/simgrid/s4u/NetZone.hpp
b/include/simgrid/s4u/NetZone.hpp
index fa5ca046e4bc93a41ad731bb9b1869e2172d2b88..0f50b376064d8b34c09adf901680a8bbde5554d2 100644
(file)
--- a/
include/simgrid/s4u/NetZone.hpp
+++ b/
include/simgrid/s4u/NetZone.hpp
@@
-38,13
+38,13
@@
XBT_PUBLIC_CLASS NetZone
protected:
friend simgrid::kernel::routing::NetZoneImpl;
protected:
friend simgrid::kernel::routing::NetZoneImpl;
- explicit NetZone(NetZone * father,
const char*
name);
+ explicit NetZone(NetZone * father,
std::string
name);
virtual ~NetZone();
public:
/** @brief Seal your netzone once you're done adding content, and before routing stuff through it */
virtual void seal();
virtual ~NetZone();
public:
/** @brief Seal your netzone once you're done adding content, and before routing stuff through it */
virtual void seal();
- char* getCname();
+ c
onst c
har* getCname();
NetZone* getFather();
std::vector<NetZone*>* getChildren(); // Sub netzones
NetZone* getFather();
std::vector<NetZone*>* getChildren(); // Sub netzones
@@
-80,7
+80,7
@@
private:
std::unordered_map<std::string, std::string> properties_;
NetZone* father_ = nullptr;
std::unordered_map<std::string, std::string> properties_;
NetZone* father_ = nullptr;
-
char* name_ = nullptr
;
+
std::string name_
;
bool sealed_ = false; // We cannot add more content when sealed
bool sealed_ = false; // We cannot add more content when sealed