implement ExtNetwork::operator==
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user