diff options
author | dwight <dwight@Dwights-MacBook-2.local> | 2009-11-05 15:18:13 -0500 |
---|---|---|
committer | dwight <dwight@Dwights-MacBook-2.local> | 2009-11-05 15:18:13 -0500 |
commit | 626aea91dfab263e8780b3624286ac332f20e8e0 (patch) | |
tree | dd3b3cb5801f70066e56d14f0d9dbd0f6d02f5e2 /client | |
parent | fe0226cd791007e63bc7f2e3244dbbdcd1cfdf7e (diff) | |
download | mongo-626aea91dfab263e8780b3624286ac332f20e8e0.tar.gz |
minor / make a method private
Diffstat (limited to 'client')
-rw-r--r-- | client/dbclient.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/dbclient.h b/client/dbclient.h index 655a66e916a..58ac1a97613 100644 --- a/client/dbclient.h +++ b/client/dbclient.h @@ -181,6 +181,7 @@ namespace mongo { /** Queries return a cursor object */ class DBClientCursor : boost::noncopyable { + friend class DBClientBase; public: /** if true, safe to call next() */ bool more(); @@ -229,9 +230,9 @@ namespace mongo { bool hasResultFlag( int flag ){ return (resultFlags & flag) != 0; } - + private: bool init(); - + public: DBClientCursor( DBConnector *_connector, const string &_ns, BSONObj _query, int _nToReturn, int _nToSkip, const BSONObj *_fieldsToReturn, int queryOptions ) : connector(_connector), |