summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_tree.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-09-18 11:57:21 -0400
committerHari Khalsa <hkhalsa@10gen.com>2013-09-18 16:42:20 -0400
commit311ebc33f399b555309ee6eba04af8c605108529 (patch)
treebe50e3cfea0c124759ded943a5d1c7cc5a79910b /src/mongo/db/matcher/expression_tree.h
parentde25d5b966fae434669df47b41c076445d2303f6 (diff)
downloadmongo-311ebc33f399b555309ee6eba04af8c605108529.tar.gz
SERVER-10026 enumeration as strategies, bug fixes galore, build plans
Diffstat (limited to 'src/mongo/db/matcher/expression_tree.h')
-rw-r--r--src/mongo/db/matcher/expression_tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression_tree.h b/src/mongo/db/matcher/expression_tree.h
index 5536b96d436..31f2a513057 100644
--- a/src/mongo/db/matcher/expression_tree.h
+++ b/src/mongo/db/matcher/expression_tree.h
@@ -57,8 +57,11 @@ namespace mongo {
void clearAndRelease() { _expressions.clear(); }
virtual size_t numChildren() const { return _expressions.size(); }
+
virtual MatchExpression* getChild( size_t i ) const { return _expressions[i]; }
+ virtual std::vector<MatchExpression*>* getChildVector() { return &_expressions; }
+
bool equivalent( const MatchExpression* other ) const;
protected:
@@ -190,6 +193,7 @@ namespace mongo {
bool equivalent( const MatchExpression* other ) const;
virtual size_t numChildren() const { return 1; }
+
virtual MatchExpression* getChild( size_t i ) const { return _exp.get(); }
virtual void resetTag() {