MongoDB C++ Driver
mongocxx-3.0.2
|
A streaming interface for constructing a BSON document. More...
#include <document.hpp>
Public Member Functions | |
document () | |
Default constructor. | |
bsoncxx::document::view | view () const |
operator bsoncxx::document::view () const | |
bsoncxx::document::value | extract () |
Transfer ownership of the underlying document to the caller. More... | |
void | clear () |
Reset the underlying BSON to an empty document. | |
Public Member Functions inherited from bsoncxx::builder::stream::key_context<> | |
key_context (core *core) | |
Create a key_context given a core builder. More... | |
value_context< key_context > | operator<< (const char(&v)[n]) |
<< operator for accepting a literal key and appending it to the core builder. More... | |
value_context< key_context > | operator<< (std::string str) |
<< operator for accepting a std::string key and appending it to the core builder. More... | |
value_context< key_context > | operator<< (stdx::string_view str) |
<< operator for accepting a stdx::string_view key and appending it to the core builder. More... | |
std::enable_if< util::is_functor< T, void(key_context<>)>::value, key_context >::type & | operator<< (T &&func) |
<< operator for accepting a callable of the form void(key_context) and invoking it to perform 1 or more key, value appends to the core builder. More... | |
std::enable_if< std::is_same< closed_context, closed_context >::value &&std::is_same< typename std::remove_reference< T >::type, const finalize_type >::value, bsoncxx::document::value >::type | operator<< (T &&) |
<< operator for finalizing the stream. More... | |
key_context | operator<< (concatenate_doc doc) |
<< operator for concatenating another document. More... | |
closed_context | operator<< (const close_document_type) |
<< operator for closing a subdocument in the core builder. More... | |
operator key_context () | |
Conversion operator which provides a rooted document given any stream currently in a nested key_context. | |
A streaming interface for constructing a BSON document.
|
inline |
Transfer ownership of the underlying document to the caller.
|
inline |
|
inline |