summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2017-08-01 15:40:36 -0400
committerDavid Storch <david.storch@10gen.com>2017-08-02 16:54:56 -0400
commit0334cb2bf602ec0123594b59504b9b3e0a099899 (patch)
tree432c8463e9e7273ec2f11978c5dcbc47e363ba84 /src/mongo/db/matcher/expression.h
parentf38554ab9fd611bb798812e4eb1fa7e3d3bbb7e3 (diff)
downloadmongo-0334cb2bf602ec0123594b59504b9b3e0a099899.tar.gz
SERVER-30245 Make ArrayMatchingMatchExpression inherit from PathMatchExpression.
Diffstat (limited to 'src/mongo/db/matcher/expression.h')
-rw-r--r--src/mongo/db/matcher/expression.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/matcher/expression.h b/src/mongo/db/matcher/expression.h
index ef70f5ab6ca..f0c1d1c4184 100644
--- a/src/mongo/db/matcher/expression.h
+++ b/src/mongo/db/matcher/expression.h
@@ -182,9 +182,9 @@ public:
// Determine if a document satisfies the tree-predicate.
//
- virtual bool matches(const MatchableDocument* doc, MatchDetails* details = 0) const = 0;
+ virtual bool matches(const MatchableDocument* doc, MatchDetails* details = nullptr) const = 0;
- virtual bool matchesBSON(const BSONObj& doc, MatchDetails* details = 0) const;
+ virtual bool matchesBSON(const BSONObj& doc, MatchDetails* details = nullptr) const;
/**
* Determines if 'elem' would satisfy the predicate if wrapped with the top-level field name of
@@ -199,7 +199,8 @@ public:
* Determines if the element satisfies the tree-predicate.
* Not valid for all expressions (e.g. $where); in those cases, returns false.
*/
- virtual bool matchesSingleElement(const BSONElement& e) const = 0;
+ virtual bool matchesSingleElement(const BSONElement& e,
+ MatchDetails* details = nullptr) const = 0;
//
// Tagging mechanism: Hang data off of the tree for retrieval later.