diff options
Diffstat (limited to 'bson/bsonobj.h')
-rw-r--r-- | bson/bsonobj.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bson/bsonobj.h b/bson/bsonobj.h index 9e948f3..486a3e6 100644 --- a/bson/bsonobj.h +++ b/bson/bsonobj.h @@ -254,6 +254,11 @@ namespace mongo { BSONElement getFieldUsingIndexNames(const char *fieldName, const BSONObj &indexKey) const; + /** arrays are bson objects with numeric and increasing field names + @return true if field names are numeric and increasing + */ + bool couldBeArray() const; + /** @return the raw data of the object */ const char *objdata() const { return _objdata; @@ -360,6 +365,7 @@ namespace mongo { string md5() const; bool operator==( const BSONObj& other ) const { return equal( other ); } + bool operator!=(const BSONObj& other) const { return !operator==( other); } enum MatchType { Equality = 0, |