diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-14 13:46:54 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-14 13:46:54 -0400 |
commit | 8bed26cdf8bf906076f6f5ad8c88431d370f58bf (patch) | |
tree | a6f2238111d387f74ffe7d8560f3952a3a270be1 /db/matcher.h | |
parent | fc486ef3658020f87eb53ab3c03586026d71f937 (diff) | |
download | mongo-8bed26cdf8bf906076f6f5ad8c88431d370f58bf.tar.gz |
fix filter cursor
Diffstat (limited to 'db/matcher.h')
-rw-r--r-- | db/matcher.h | 7 |
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. |