summaryrefslogtreecommitdiff
path: root/src/mongo/db/field_ref.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-05-08 10:22:47 -0400
committerEliot Horowitz <eliot@10gen.com>2013-05-09 10:16:55 -0400
commitf41cc12bf4672528f513fb81f1fab4b4b379ae83 (patch)
tree706cde2ccbcbbda3d895fd4bca46cc019f50607d /src/mongo/db/field_ref.h
parent0078fb7d2bc7cb352df42524399276fa51b7b110 (diff)
downloadmongo-f41cc12bf4672528f513fb81f1fab4b4b379ae83.tar.gz
SERVER-6400 FieldRef has a equalsDottedField to compare it to a full string
Diffstat (limited to 'src/mongo/db/field_ref.h')
-rw-r--r--src/mongo/db/field_ref.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/field_ref.h b/src/mongo/db/field_ref.h
index ea7b7dab34d..ecc94bce046 100644
--- a/src/mongo/db/field_ref.h
+++ b/src/mongo/db/field_ref.h
@@ -88,6 +88,11 @@ namespace mongo {
*/
size_t numReplaced() const;
+ /**
+ * compares the full dotted path represented by this FieldRef to other
+ */
+ bool equalsDottedField( const StringData& other ) const;
+
private:
// Dotted fields are most often not longer than three parts. We use a mixed structure
// here that will not require any extra memory allocation when that is the case. And