summaryrefslogtreecommitdiff
path: root/db/introspect.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/introspect.h')
-rw-r--r--db/introspect.h80
1 files changed, 40 insertions, 40 deletions
diff --git a/db/introspect.h b/db/introspect.h
index 4046243fe0e..a4d1a43bce0 100644
--- a/db/introspect.h
+++ b/db/introspect.h
@@ -25,53 +25,53 @@
namespace mongo {
-auto_ptr<Cursor> getSpecialCursor(const char *ns);
+ auto_ptr<Cursor> getSpecialCursor(const char *ns);
-class SingleResultObjCursor : public Cursor {
- int i;
-protected:
- BSONObjBuilder b;
- void reg(const char *as); /* register as a certain namespace */
-public:
- SingleResultObjCursor() {
- i = 0;
- }
- virtual bool ok() {
- return i == 0;
- }
- virtual Record* _current() {
- assert(false);
- return 0;
- }
- virtual DiskLoc currLoc() {
- assert(false);
- return DiskLoc();
- }
+ class SingleResultObjCursor : public Cursor {
+ int i;
+ protected:
+ BSONObjBuilder b;
+ void reg(const char *as); /* register as a certain namespace */
+ public:
+ SingleResultObjCursor() {
+ i = 0;
+ }
+ virtual bool ok() {
+ return i == 0;
+ }
+ virtual Record* _current() {
+ assert(false);
+ return 0;
+ }
+ virtual DiskLoc currLoc() {
+ assert(false);
+ return DiskLoc();
+ }
- virtual void fill() = 0;
+ virtual void fill() = 0;
- virtual BSONObj current() {
- assert(i == 0);
- fill();
- return b.done();
- }
+ virtual BSONObj current() {
+ assert(i == 0);
+ fill();
+ return b.done();
+ }
- virtual bool advance() {
- i++;
- return false;
- }
+ virtual bool advance() {
+ i++;
+ return false;
+ }
- virtual string toString() {
- return "SingleResultObjCursor";
- }
+ virtual string toString() {
+ return "SingleResultObjCursor";
+ }
-};
+ };
-/* --- profiling --------------------------------------------
- do when database->profile is set
-*/
+ /* --- profiling --------------------------------------------
+ do when database->profile is set
+ */
-void profile(const char *str,
- int millis);
+ void profile(const char *str,
+ int millis);
} // namespace mongo