mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
base: Added operatiors for comparing affinities.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user