X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d72bc00352d78cb2d037eeff71ef743e13b28c54..0b348e806f86cd8c138b8485c8d41c041ccad610:/src/instr/instr_paje_containers.hpp diff --git a/src/instr/instr_paje_containers.hpp b/src/instr/instr_paje_containers.hpp index d18ddde09e..0106898bf0 100644 --- a/src/instr/instr_paje_containers.hpp +++ b/src/instr/instr_paje_containers.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2018. 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. */ @@ -12,7 +12,9 @@ namespace simgrid { namespace instr { class Type; +class LinkType; class StateType; +class VariableType; class Container { long long int id_; @@ -24,19 +26,22 @@ public: Type* type_; /* Type of this container */ Container* father_; std::map children_; - sg_netpoint_t netpoint_ = nullptr; + kernel::routing::NetPoint* netpoint_ = nullptr; static Container* byNameOrNull(std::string name); static Container* byName(std::string name); - std::string getName() { return name_; } - const char* getCname() { return name_.c_str(); } - long long int getId() { return id_; } + std::string get_name() { return name_; } + const char* get_cname() { return name_.c_str(); } + long long int get_id() { return id_; } void removeFromParent(); void logCreation(); void logDestruction(); StateType* getState(std::string name); - static Container* getRootContainer(); + 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 {