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
refactor with templated method
[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
688abeb
..
0106898
100644
(file)
--- a/
src/instr/instr_paje_containers.hpp
+++ b/
src/instr/instr_paje_containers.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-201
7
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-201
8
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-7,10
+7,14
@@
#define INSTR_PAJE_CONTAINERS_HPP
#include "src/instr/instr_private.hpp"
#define INSTR_PAJE_CONTAINERS_HPP
#include "src/instr/instr_private.hpp"
+#include <string>
namespace simgrid {
namespace instr {
class Type;
namespace simgrid {
namespace instr {
class Type;
+class LinkType;
+class StateType;
+class VariableType;
class Container {
long long int id_;
class Container {
long long int id_;
@@
-22,18
+26,22
@@
public:
Type* type_; /* Type of this container */
Container* father_;
std::map<std::string, Container*> children_;
Type* type_; /* Type of this container */
Container* father_;
std::map<std::string, Container*> children_;
-
sg_netpoint_t
netpoint_ = nullptr;
+
kernel::routing::NetPoint*
netpoint_ = nullptr;
static Container* byNameOrNull(std::string name);
static Container* byName(std::string name);
static Container* byNameOrNull(std::string name);
static Container* byName(std::string name);
- std::string get
N
ame() { return name_; }
- const char* get
C
name() { return name_.c_str(); }
- long long int get
I
d() { return id_; }
+ std::string get
_n
ame() { return name_; }
+ const char* get
_c
name() { return name_.c_str(); }
+ long long int get
_i
d() { return id_; }
void removeFromParent();
void logCreation();
void logDestruction();
void removeFromParent();
void logCreation();
void logDestruction();
- static Container* getRootContainer();
+ StateType* getState(std::string name);
+ LinkType* getLink(std::string name);
+ VariableType* getVariable(std::string name);
+ void createChild(std::string name, std::string type_name);
+ static Container* getRoot();
};
class NetZoneContainer : public Container {
};
class NetZoneContainer : public Container {