New method to get the netpoint used by netzones.
Usefull when describing routes using the netzones (add_route method)
/** @brief Retrieves the name of that netzone as a C string */
const char* get_cname() const { return name_.c_str(); };
+ /** @brief Gets the netpoint associated to this netzone */
+ kernel::routing::NetPoint* get_netpoint() const { return netpoint_; }
+
std::vector<s4u::Host*> get_all_hosts() const;
int get_host_count() const;
/** Retrieve the property value (or nullptr if not set) */
const char* get_property(const std::string& key) const;
void set_property(const std::string& key, const std::string& value);
+ /** @brief Get the netpoint associated to this netzone */
+ kernel::routing::NetPoint* get_netpoint();
std::vector<NetZone*> get_children() const;
XBT_ATTRIB_DEPRECATED_v332("Please use set_parent() to manage NetZone's relationship") NetZone* add_child(
return kernel::actor::simcall([this, &name] { return pimpl_->create_router(name); });
}
+kernel::routing::NetPoint* NetZone::get_netpoint()
+{
+ return pimpl_->get_netpoint();
+}
} // namespace s4u
} // namespace simgrid