namespace simgrid {
namespace instr {
-container_t Container::getRootContainer()
+container_t Container::getRoot()
{
return rootContainer;
}
TRACE_paje_dump_buffer(true);
// trace my destruction, but not if user requests so or if the container is root
- if (not TRACE_disable_destroy() && this != Container::getRootContainer())
+ if (not TRACE_disable_destroy() && this != Container::getRoot())
logDestruction();
// remove me from the allContainers data structure
LinkType* Container::getLink(std::string name)
{
- return dynamic_cast<LinkType*>(type_->byName(name));
+ LinkType* ret = dynamic_cast<LinkType*>(type_->byName(name));
+ ret->setCallingContainer(this);
+ return ret;
}
VariableType* Container::getVariable(std::string name)