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
SIMIX_display_process_status becomes Global::display_all_actor_status
[simgrid.git]
/
src
/
instr
/
instr_paje_containers.hpp
diff --git
a/src/instr/instr_paje_containers.hpp
b/src/instr/instr_paje_containers.hpp
index
3e27997
..
17241ef
100644
(file)
--- a/
src/instr/instr_paje_containers.hpp
+++ b/
src/instr/instr_paje_containers.hpp
@@
-20,7
+20,9
@@
class Container {
long long int id_;
std::string name_; /* Unique name of this container */
public:
long long int id_;
std::string name_; /* Unique name of this container */
public:
- Container(std::string name, const std::string& type_name, Container* father);
+ Container(const std::string& name, const std::string& type_name, Container* father);
+ Container(const Container&) = delete;
+ Container& operator=(const Container&) = delete;
virtual ~Container();
Type* type_; /* Type of this container */
virtual ~Container();
Type* type_; /* Type of this container */
@@
-30,7
+32,7
@@
public:
static Container* by_name_or_null(const std::string& name);
static Container* by_name(const std::string& name);
static Container* by_name_or_null(const std::string& name);
static Container* by_name(const std::string& name);
-
std::string get_name()
{ return name_; }
+
const std::string& get_name() const
{ return name_; }
const char* get_cname() { return name_.c_str(); }
long long int get_id() { return id_; }
void remove_from_parent();
const char* get_cname() { return name_.c_str(); }
long long int get_id() { return id_; }
void remove_from_parent();
@@
-40,23
+42,23
@@
public:
StateType* get_state(const std::string& name);
LinkType* get_link(const std::string& name);
VariableType* get_variable(const std::string& name);
StateType* get_state(const std::string& name);
LinkType* get_link(const std::string& name);
VariableType* get_variable(const std::string& name);
- void create_child(
std::string
name, const std::string& type_name);
+ void create_child(
const std::string&
name, const std::string& type_name);
static Container* get_root();
};
class NetZoneContainer : public Container {
public:
static Container* get_root();
};
class NetZoneContainer : public Container {
public:
- NetZoneContainer(
std::string
name, unsigned int level, NetZoneContainer* father);
+ NetZoneContainer(
const std::string&
name, unsigned int level, NetZoneContainer* father);
};
class RouterContainer : public Container {
public:
};
class RouterContainer : public Container {
public:
- RouterContainer(
std::string
name, Container* father);
+ RouterContainer(
const std::string&
name, Container* father);
};
class HostContainer : public Container {
public:
};
class HostContainer : public Container {
public:
- HostContainer(simgrid::s4u::Host& host, NetZoneContainer* father);
+ HostContainer(simgrid::s4u::Host
const
& host, NetZoneContainer* father);
};
}
}
};
}
}