implement ExtNetwork::operator==

This commit is contained in:
Arne Morten Kvarving
2023-06-21 10:45:18 +02:00
parent b7617f9469
commit 74acf7080b

View File

@@ -34,8 +34,10 @@ bool ExtNetwork::active() const {
return !this->m_branches.empty() && !this->m_nodes.empty();
}
bool ExtNetwork::operator==(const ExtNetwork&) const {
return true;
bool ExtNetwork::operator==(const ExtNetwork& rhs) const {
return this->m_branches == rhs.m_branches
&& this->insert_indexed_node_names == rhs.insert_indexed_node_names
&& this->m_nodes == rhs.m_nodes;
}