summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_geo.h
diff options
context:
space:
mode:
authorDan Larkin-York <dan.larkin-york@mongodb.com>2022-04-06 14:46:57 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-06 17:43:24 +0000
commit26a4ad50a630050643bf9f3ccd58d096dd792db0 (patch)
tree4a902dfd5e2999dd8bc8e8d6c89fd5e05da19f02 /src/mongo/db/matcher/expression_geo.h
parent87c3421e0028b33d5826abf62348d230487328cc (diff)
downloadmongo-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.h6
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;