NetZoneContainer::NetZoneContainer(std::string name, unsigned int level, NetZoneContainer* father)
: Container::Container(name, "", father)
{
NetZoneContainer::NetZoneContainer(std::string name, unsigned int level, NetZoneContainer* father)
: Container::Container(name, "", father)
{
xbt_assert(netpoint_, "Element '%s' not found", name.c_str());
trivaNodeTypes.insert(type_->get_name());
xbt_assert(netpoint_, "Element '%s' not found", name.c_str());
trivaNodeTypes.insert(type_->get_name());
XBT_DEBUG("new container %s, child of %s", name.c_str(), father->name_.c_str());
if (not type_name.empty()) {
XBT_DEBUG("new container %s, child of %s", name.c_str(), father->name_.c_str());
if (not type_name.empty()) {
TRACE_paje_dump_buffer(true);
// trace my destruction, but not if user requests so or if the container is root
TRACE_paje_dump_buffer(true);
// trace my destruction, but not if user requests so or if the container is root
- Container* ret = Container::byNameOrNull(name);
- if (ret == nullptr)
- THROWF(tracing_error, 1, "container with name %s not found", name.c_str());
+ Container* ret = Container::by_name_or_null(name);
+ xbt_assert(ret != nullptr, "container with name %s not found", name.c_str());
- VariableType* ret = dynamic_cast<VariableType*>(type_->byName(name));
- ret->setCallingContainer(this);
+ VariableType* ret = dynamic_cast<VariableType*>(type_->by_name(name));
+ ret->set_calling_container(this);