-static Container* rootContainer = nullptr; /* the root container */
-static std::map<std::string, Container*> allContainers; /* all created containers indexed by name */
+Container* Container::root_container_ = nullptr; /* the root container */
+std::map<std::string, Container*> Container::all_containers_; /* all created containers indexed by name */
NetZoneContainer::NetZoneContainer(const std::string& name, unsigned int level, NetZoneContainer* father)
: Container::Container(name, "", father)
{
NetZoneContainer::NetZoneContainer(const std::string& name, unsigned int level, NetZoneContainer* father)
: Container::Container(name, "", father)
{
// obligation to dump previous events because they might reference the container that is about to be destroyed
last_timestamp_to_dump = SIMIX_get_clock();
// obligation to dump previous events because they might reference the container that is about to be destroyed
last_timestamp_to_dump = SIMIX_get_clock();
- auto cont = allContainers.find(name);
- return cont == allContainers.end() ? nullptr : cont->second;
+ auto cont = all_containers_.find(name);
+ return cont == all_containers_.end() ? nullptr : cont->second;