summaryrefslogtreecommitdiff
path: root/db/matcher.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-04-14 13:46:54 -0400
committerEliot Horowitz <eliot@10gen.com>2010-04-14 13:46:54 -0400
commit8bed26cdf8bf906076f6f5ad8c88431d370f58bf (patch)
treea6f2238111d387f74ffe7d8560f3952a3a270be1 /db/matcher.h
parentfc486ef3658020f87eb53ab3c03586026d71f937 (diff)
downloadmongo-8bed26cdf8bf906076f6f5ad8c88431d370f58bf.tar.gz
fix filter cursor
Diffstat (limited to 'db/matcher.h')
-rw-r--r--db/matcher.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/db/matcher.h b/db/matcher.h
index 9ba4bf1a5e9..725349ffa36 100644
--- a/db/matcher.h
+++ b/db/matcher.h
@@ -146,8 +146,13 @@ namespace mongo {
bool keyMatch() const { return !all && !haveSize && !hasArray && !haveNeg && _orMatchers.size() == 0; }
bool atomic() const { return _atomic; }
-
+
bool hasType( BSONObj::MatchType type ) const;
+
+ string toString() const {
+ return jsobj.toString();
+ }
+
private:
void addBasic(const BSONElement &e, int c, bool isNot) {
// TODO May want to selectively ignore these element types based on op type.