From f604d149b53c4738b58071fb82feb36ca6635ac8 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Mon, 5 Nov 2018 00:32:04 +0100 Subject: [PATCH] WIP: next part of region refactoring. --- src/db/db/dbRegion.cc | 12 ++++++++++++ src/db/db/dbRegion.h | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/db/db/dbRegion.cc b/src/db/db/dbRegion.cc index b8f234dba..89a48b81f 100644 --- a/src/db/db/dbRegion.cc +++ b/src/db/db/dbRegion.cc @@ -133,6 +133,18 @@ EmptyRegion::add (const Region &other) const return other.delegate ()->clone (); } +bool +EmptyRegion::equals (const Region &other) const +{ + return other.empty (); +} + +bool +EmptyRegion::less (const Region &other) const +{ + return other.empty () ? false : true; +} + // ------------------------------------------------------------------------------------------------------------- // AsIfFlagRegion implementation diff --git a/src/db/db/dbRegion.h b/src/db/db/dbRegion.h index e640125b5..e66c1f34e 100644 --- a/src/db/db/dbRegion.h +++ b/src/db/db/dbRegion.h @@ -584,8 +584,8 @@ public: virtual EdgePairs space_check (db::Coord, bool, metrics_type, double, distance_type, distance_type) const { return EdgePairs (); } virtual EdgePairs isolated_check (db::Coord, bool, metrics_type, double, distance_type, distance_type) const { return EdgePairs (); } virtual EdgePairs notch_check (db::Coord, bool, metrics_type, double, distance_type, distance_type) const { return EdgePairs (); } - virtual EdgePairs enclosing_check (const Region &other, db::Coord d, bool whole_edges, metrics_type metrics, double ignore_angle, distance_type min_projection, distance_type max_projection) const; - virtual EdgePairs overlap_check (const Region &other, db::Coord d, bool whole_edges, metrics_type metrics, double ignore_angle, distance_type min_projection, distance_type max_projection) const; + virtual EdgePairs enclosing_check (const Region &, db::Coord, bool, metrics_type, double, distance_type, distance_type) const { return EdgePairs (); } + virtual EdgePairs overlap_check (const Region &, db::Coord, bool, metrics_type, double, distance_type, distance_type) const { return EdgePairs (); } virtual EdgePairs separation_check (const Region &, db::Coord, bool , metrics_type, double, distance_type, distance_type) const { return EdgePairs (); } virtual EdgePairs inside_check (const Region &, db::Coord, bool, metrics_type, double, distance_type, distance_type) const { return EdgePairs (); } virtual EdgePairs grid_check (db::Coord, db::Coord) const { return EdgePairs (); }