summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_text.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/expression_text.h
parent01965cf52bce6976637ecb8f4a622aeb05ab256a (diff)
downloadmongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/db/matcher/expression_text.h')
-rw-r--r--src/mongo/db/matcher/expression_text.h45
1 files changed, 26 insertions, 19 deletions
diff --git a/src/mongo/db/matcher/expression_text.h b/src/mongo/db/matcher/expression_text.h
index 8d853de5621..3841bf4a608 100644
--- a/src/mongo/db/matcher/expression_text.h
+++ b/src/mongo/db/matcher/expression_text.h
@@ -36,30 +36,37 @@
namespace mongo {
- class TextMatchExpression : public LeafMatchExpression {
- public:
- TextMatchExpression() : LeafMatchExpression( TEXT ) {}
- virtual ~TextMatchExpression() {}
+class TextMatchExpression : public LeafMatchExpression {
+public:
+ TextMatchExpression() : LeafMatchExpression(TEXT) {}
+ virtual ~TextMatchExpression() {}
- Status init( const std::string& query, const std::string& language, bool caseSensitive );
+ Status init(const std::string& query, const std::string& language, bool caseSensitive);
- virtual bool matchesSingleElement( const BSONElement& e ) const;
+ virtual bool matchesSingleElement(const BSONElement& e) const;
- virtual void debugString( StringBuilder& debug, int level = 0 ) const;
+ virtual void debugString(StringBuilder& debug, int level = 0) const;
- virtual void toBSON(BSONObjBuilder* out) const;
+ virtual void toBSON(BSONObjBuilder* out) const;
- virtual bool equivalent( const MatchExpression* other ) const;
+ virtual bool equivalent(const MatchExpression* other) const;
- virtual LeafMatchExpression* shallowClone() const;
+ virtual LeafMatchExpression* shallowClone() const;
- const std::string& getQuery() const { return _query; }
- const std::string& getLanguage() const { return _language; }
- bool getCaseSensitive() const { return _caseSensitive; }
- private:
- std::string _query;
- std::string _language;
- bool _caseSensitive;
- };
+ const std::string& getQuery() const {
+ return _query;
+ }
+ const std::string& getLanguage() const {
+ return _language;
+ }
+ bool getCaseSensitive() const {
+ return _caseSensitive;
+ }
-} // namespace mongo
+private:
+ std::string _query;
+ std::string _language;
+ bool _caseSensitive;
+};
+
+} // namespace mongo