diff options
author | Dan Larkin-York <dan.larkin-york@mongodb.com> | 2022-04-06 14:46:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-06 17:43:24 +0000 |
commit | 26a4ad50a630050643bf9f3ccd58d096dd792db0 (patch) | |
tree | 4a902dfd5e2999dd8bc8e8d6c89fd5e05da19f02 /src/mongo/db/matcher/expression_geo.h | |
parent | 87c3421e0028b33d5826abf62348d230487328cc (diff) | |
download | mongo-26a4ad50a630050643bf9f3ccd58d096dd792db0.tar.gz |
SERVER-58789 Make GeometryContainer copyable
Diffstat (limited to 'src/mongo/db/matcher/expression_geo.h')
-rw-r--r-- | src/mongo/db/matcher/expression_geo.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_geo.h b/src/mongo/db/matcher/expression_geo.h index 394eeb9cfb7..bd3752399c8 100644 --- a/src/mongo/db/matcher/expression_geo.h +++ b/src/mongo/db/matcher/expression_geo.h @@ -97,8 +97,12 @@ public: const GeoExpression::Predicate& queryPredicate, bool skipValidation, const BSONElement& e, - MatchDetails* details); + MatchDetails*); + static bool contains(const GeometryContainer& queryGeom, + const GeoExpression::Predicate& queryPredicate, + GeometryContainer* geometry); bool matchesSingleElement(const BSONElement&, MatchDetails* details = nullptr) const final; + bool matchesGeoContainer(const GeometryContainer&) const; virtual void debugString(StringBuilder& debug, int indentationLevel = 0) const; |