const std::string& get_name() const { return name_; }
/** @brief Retrieves the name of that netzone as a C string */
const char* get_cname() const;
- NetZone* getFather();
+ NetZone* get_father();
+ XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_father()") NetZone* getFather() { return get_father(); }
XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_name()") const std::string& getName() const { return get_name(); }
XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_cname()") const char* getCname() const { return get_cname(); }
XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::add_route()") void addRoute(
NetZoneImpl* current = src->get_englobing_zone();
while (current != nullptr) {
path_src.push_back(current);
- current = static_cast<NetZoneImpl*>(current->getFather());
+ current = static_cast<NetZoneImpl*>(current->get_father());
}
std::vector<NetZoneImpl*> path_dst;
current = dst->get_englobing_zone();
while (current != nullptr) {
path_dst.push_back(current);
- current = static_cast<NetZoneImpl*>(current->getFather());
+ current = static_cast<NetZoneImpl*>(current->get_father());
}
/* (3) find the common father.
{
return name_.c_str();
}
-NetZone* NetZone::getFather()
+NetZone* NetZone::get_father()
{
return father_;
}
xbt_assert(current_routing, "Cannot seal the current AS: none under construction");
current_routing->seal();
simgrid::s4u::NetZone::onSeal(*current_routing);
- current_routing = static_cast<simgrid::kernel::routing::NetZoneImpl*>(current_routing->getFather());
+ current_routing = static_cast<simgrid::kernel::routing::NetZoneImpl*>(current_routing->get_father());
}
/** @brief Add a link connecting an host to the rest of its AS (which must be cluster or vivaldi) */