summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression.h')
-rw-r--r--src/mongo/db/matcher/expression.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression.h b/src/mongo/db/matcher/expression.h
index de36e5ac45b..67cf6aa1016 100644
--- a/src/mongo/db/matcher/expression.h
+++ b/src/mongo/db/matcher/expression.h
@@ -145,6 +145,9 @@ namespace mongo {
// XXX: document
virtual MatchExpression* shallowClone() const = 0;
+ // XXX document
+ virtual bool equivalent( const MatchExpression* other ) const = 0;
+
//
// Determine if a document satisfies the tree-predicate.
//
@@ -188,7 +191,6 @@ namespace mongo {
virtual string toString() const;
virtual void debugString( StringBuilder& debug, int level = 0 ) const = 0;
- virtual bool equivalent( const MatchExpression* other ) const = 0;
protected:
void _debugAddSpace( StringBuilder& debug, int level ) const;