X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/77bbf3027c4240a2e833209a3a3f186589da8577..c4000f89d4644c3d7ff6187a62a0930c4d53e683:/src/instr/instr_paje_containers.hpp diff --git a/src/instr/instr_paje_containers.hpp b/src/instr/instr_paje_containers.hpp index fe1bd0063c..0498243a56 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. */ @@ -26,22 +26,22 @@ public: Type* type_; /* Type of this container */ Container* father_; std::map children_; - sg_netpoint_t 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_; } - void removeFromParent(); - void logCreation(); - void logDestruction(); - - StateType* getState(std::string name); - LinkType* getLink(std::string name); - VariableType* getVariable(std::string name); - - static Container* getRoot(); + kernel::routing::NetPoint* netpoint_ = nullptr; + + static Container* by_name_or_null(std::string name); + static Container* by_name(std::string name); + std::string get_name() { return name_; } + const char* get_cname() { return name_.c_str(); } + long long int get_id() { return id_; } + void remove_from_parent(); + void log_creation(); + void log_destruction(); + + StateType* get_state(std::string name); + LinkType* get_link(std::string name); + VariableType* get_variable(std::string name); + void create_child(std::string name, std::string type_name); + static Container* get_root(); }; class NetZoneContainer : public Container {