summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-05-06 11:22:54 -0400
committerEliot Horowitz <eliot@10gen.com>2013-05-06 11:22:54 -0400
commited3efe444510137cc45e11188e23680656e22ead (patch)
treedc1d75a66e0f7bb1112adccde2994957845a6f76 /src/mongo/db/matcher/expression.cpp
parentd6a2d8027f1cbc684d960b8f522e3ffb4043d6d2 (diff)
downloadmongo-ed3efe444510137cc45e11188e23680656e22ead.tar.gz
SERVER-6400: MatchExpression version of Matcher code complete.
Diffstat (limited to 'src/mongo/db/matcher/expression.cpp')
-rw-r--r--src/mongo/db/matcher/expression.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression.cpp b/src/mongo/db/matcher/expression.cpp
index 4b9b9f020ba..e2372aa14b6 100644
--- a/src/mongo/db/matcher/expression.cpp
+++ b/src/mongo/db/matcher/expression.cpp
@@ -25,6 +25,11 @@
namespace mongo {
+ MatchExpression::MatchExpression( MatchCategory category, MatchType type )
+ : _matchCategory( category ), _matchType( type ){
+ }
+
+
string MatchExpression::toString() const {
StringBuilder buf;
debugString( buf, 0 );
@@ -36,6 +41,11 @@ namespace mongo {
debug << " ";
}
+ void AtomicMatchExpression::debugString( StringBuilder& debug, int level ) const {
+ _debugAddSpace( debug, level );
+ debug << "$atomic\n";
+ }
+
}