base: Added operatiors for comparing affinities.

This commit is contained in:
Michael Mueller
2024-01-30 17:53:41 +01:00
parent a2a03fafd2
commit c455e9266e

View File

@@ -167,6 +167,13 @@ class Genode::Affinity
node.attribute_value("height", default_height));
}
bool operator==(Location const &rhs) {
return this->_xpos == rhs._xpos && this->_ypos == rhs._ypos && this->height() == rhs.height() && this->width() == rhs.width();
}
bool operator!=(Location const &rhs) {
return !(*this == rhs);
}
};
private: