XBT_ATTRIB_DEPRECATED_v331("Please use get_parent()") NetZone* get_father();
NetZone* get_parent() const;
- NetZone* set_parent(NetZone* parent);
+ NetZone* set_parent(const NetZone* parent);
std::vector<Host*> get_all_hosts() const;
int get_host_count() const;
void set_property(const std::string& key, const std::string& value);
std::vector<NetZone*> get_children() const;
- NetZone* add_child(NetZone* new_zone);
+ NetZone* add_child(const NetZone* new_zone);
void extract_xbt_graph(const s_xbt_graph_t* graph, std::map<std::string, xbt_node_t, std::less<>>* nodes,
std::map<std::string, xbt_edge_t, std::less<>>* edges);
return res;
}
-NetZone* NetZone::add_child(NetZone* new_zone)
+NetZone* NetZone::add_child(const NetZone* new_zone)
{
pimpl_->add_child(new_zone->get_impl());
return this;
return pimpl_->get_parent()->get_iface();
}
-NetZone* NetZone::set_parent(NetZone* parent)
+NetZone* NetZone::set_parent(const NetZone* parent)
{
pimpl_->set_parent(parent->get_impl());
return this;