We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d41358 commit 9fd7389Copy full SHA for 9fd7389
vpr/src/base/partition_region.h
@@ -50,6 +50,16 @@ class PartitionRegion {
50
*/
51
bool is_loc_in_part_reg(const t_pl_loc& loc) const;
52
53
+ /**
54
+ * @brief Compares whether this PartitionRegion includes the same regions
55
+ * and another PartitionRegion.
56
+ * @param pr The other PartitionRegion to be compared with this object.
57
+ * @return True if both PartitionRegions contain the same regions.
58
+ */
59
+ bool operator==(const PartitionRegion& pr) const {
60
+ return (regions == pr.get_regions());
61
+ }
62
+
63
private:
64
std::vector<Region> regions; ///< union of rectangular regions that a partition can be placed in
65
};
0 commit comments