diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 00:22:50 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 10:56:02 -0400 |
commit | 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch) | |
tree | 3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/rpc/reply_interface.h | |
parent | 01965cf52bce6976637ecb8f4a622aeb05ab256a (diff) | |
download | mongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz |
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/rpc/reply_interface.h')
-rw-r--r-- | src/mongo/rpc/reply_interface.h | 75 |
1 files changed, 38 insertions, 37 deletions
diff --git a/src/mongo/rpc/reply_interface.h b/src/mongo/rpc/reply_interface.h index ac0514dc64f..7786c57cb26 100644 --- a/src/mongo/rpc/reply_interface.h +++ b/src/mongo/rpc/reply_interface.h @@ -32,52 +32,53 @@ #include "mongo/rpc/protocol.h" namespace mongo { - class BSONObj; - class Message; +class BSONObj; +class Message; namespace rpc { - class DocumentRange; +class DocumentRange; + +/** + * An immutable view of an RPC Reply. + */ +class ReplyInterface { + MONGO_DISALLOW_COPYING(ReplyInterface); + +public: + virtual ~ReplyInterface() = default; /** - * An immutable view of an RPC Reply. + * Accessor for the metadata object. Metadata is generally used for information + * that is independent of any specific command, e.g. auditing information. */ - class ReplyInterface { - MONGO_DISALLOW_COPYING(ReplyInterface); - public: - virtual ~ReplyInterface() = default; - - /** - * Accessor for the metadata object. Metadata is generally used for information - * that is independent of any specific command, e.g. auditing information. - */ - virtual const BSONObj& getMetadata() const = 0; + virtual const BSONObj& getMetadata() const = 0; - /** - * The result of executing the command. - */ - virtual const BSONObj& getCommandReply() const = 0; + /** + * The result of executing the command. + */ + virtual const BSONObj& getCommandReply() const = 0; - /** - * A variable number of BSON documents returned by the command. It is valid for the - * returned range to be empty. - * - * Example usage: - * - * for (auto&& doc : reply.getOutputDocs()) { - * ... do stuff with doc - * } - */ - virtual DocumentRange getOutputDocs() const = 0; + /** + * A variable number of BSON documents returned by the command. It is valid for the + * returned range to be empty. + * + * Example usage: + * + * for (auto&& doc : reply.getOutputDocs()) { + * ... do stuff with doc + * } + */ + virtual DocumentRange getOutputDocs() const = 0; - /** - * Gets the protocol used to deserialize this reply. This should be used for validity - * checks only - runtime behavior changes should be implemented with polymorphism. - */ - virtual Protocol getProtocol() const = 0; + /** + * Gets the protocol used to deserialize this reply. This should be used for validity + * checks only - runtime behavior changes should be implemented with polymorphism. + */ + virtual Protocol getProtocol() const = 0; - protected: - ReplyInterface() = default; - }; +protected: + ReplyInterface() = default; +}; } // namespace rpc } // namespace mongo |