summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/match_details.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 00:22:50 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 10:56:02 -0400
commit9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch)
tree3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/db/matcher/match_details.h
parent01965cf52bce6976637ecb8f4a622aeb05ab256a (diff)
downloadmongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/db/matcher/match_details.h')
-rw-r--r--src/mongo/db/matcher/match_details.h54
1 files changed, 31 insertions, 23 deletions
diff --git a/src/mongo/db/matcher/match_details.h b/src/mongo/db/matcher/match_details.h
index 8d5f016747f..15a0a606678 100644
--- a/src/mongo/db/matcher/match_details.h
+++ b/src/mongo/db/matcher/match_details.h
@@ -35,39 +35,47 @@
namespace mongo {
- /** Reports information about a match request. */
- class MatchDetails {
- public:
- MatchDetails();
+/** Reports information about a match request. */
+class MatchDetails {
+public:
+ MatchDetails();
- void resetOutput();
+ void resetOutput();
- // for debugging only
- std::string toString() const;
+ // for debugging only
+ std::string toString() const;
- // relating to whether or not we had to load the full record
+ // relating to whether or not we had to load the full record
- void setLoadedRecord( bool loadedRecord ) { _loadedRecord = loadedRecord; }
+ void setLoadedRecord(bool loadedRecord) {
+ _loadedRecord = loadedRecord;
+ }
- bool hasLoadedRecord() const { return _loadedRecord; }
+ bool hasLoadedRecord() const {
+ return _loadedRecord;
+ }
- // this name is wrong
+ // this name is wrong
- bool needRecord() const { return _elemMatchKeyRequested; }
+ bool needRecord() const {
+ return _elemMatchKeyRequested;
+ }
- // if we need to store the offset into an array where we found the match
+ // if we need to store the offset into an array where we found the match
- /** Request that an elemMatchKey be recorded. */
- void requestElemMatchKey() { _elemMatchKeyRequested = true; }
+ /** Request that an elemMatchKey be recorded. */
+ void requestElemMatchKey() {
+ _elemMatchKeyRequested = true;
+ }
- bool hasElemMatchKey() const;
- std::string elemMatchKey() const;
+ bool hasElemMatchKey() const;
+ std::string elemMatchKey() const;
- void setElemMatchKey( const std::string &elemMatchKey );
+ void setElemMatchKey(const std::string& elemMatchKey);
- private:
- bool _loadedRecord;
- bool _elemMatchKeyRequested;
- std::unique_ptr<std::string> _elemMatchKey;
- };
+private:
+ bool _loadedRecord;
+ bool _elemMatchKeyRequested;
+ std::unique_ptr<std::string> _elemMatchKey;
+};
}