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] Declare functions "const" in src/instr/.
[simgrid.git]
/
src
/
instr
/
instr_paje_types.hpp
diff --git
a/src/instr/instr_paje_types.hpp
b/src/instr/instr_paje_types.hpp
index 2ce289b7d7fc4ec8af9c4b251f3519f38ba21948..e23ddc2d68e72ab3b5f62d91451366fcdbd79a9b 100644
(file)
--- a/
src/instr/instr_paje_types.hpp
+++ b/
src/instr/instr_paje_types.hpp
@@
-34,13
+34,13
@@
public:
Type* father);
virtual ~Type() = default;
Type* father);
virtual ~Type() = default;
- long long int get_id() { return id_; }
+ long long int get_id()
const
{ return id_; }
const std::string& get_name() const { return name_; }
const std::string& get_name() const { return name_; }
- const char* get_cname() { return name_.c_str(); }
+ const char* get_cname()
const
{ return name_.c_str(); }
const std::string& get_color() const { return color_; }
Type* get_father() const { return father_; }
const std::string& get_color() const { return color_; }
Type* get_father() const { return father_; }
- const std::map<std::string, std::unique_ptr<Type>>& get_children() { return children_; }
- bool is_colored() { return not color_.empty(); }
+ const std::map<std::string, std::unique_ptr<Type>>& get_children()
const
{ return children_; }
+ bool is_colored()
const
{ return not color_.empty(); }
Type* by_name(const std::string& name);
LinkType* by_name_or_create(const std::string& name, Type* source, Type* dest);
Type* by_name(const std::string& name);
LinkType* by_name_or_create(const std::string& name, Type* source, Type* dest);