17 #include <bsoncxx/builder/core.hpp> 18 #include <bsoncxx/builder/stream/array_context.hpp> 19 #include <bsoncxx/builder/stream/closed_context.hpp> 20 #include <bsoncxx/builder/stream/helpers.hpp> 21 #include <bsoncxx/util/functor.hpp> 23 #include <bsoncxx/config/prelude.hpp> 26 BSONCXX_INLINE_NAMESPACE_BEGIN
67 typename std::enable_if<!util::is_functor<T, void(single_context)>::value, base>
::type 69 _core->
append(std::forward<T>(t));
82 typename std::enable_if<util::is_functor<T, void(single_context)>::value, base>
::type 96 return wrap_document();
117 #if !defined(_MSC_VER) 120 std::is_same<
value_context, decltype(std::declval<value_context>() << 1 <<
"str")>::value,
121 "value_context must be templatized on a key_context");
125 BSONCXX_INLINE base unwrap() {
142 BSONCXX_INLINE_NAMESPACE_END
145 #include <bsoncxx/config/postlude.hpp> Definition: helpers.hpp:29
A low-level interface for constructing BSON documents and arrays.
Definition: core.hpp:42
A stream context which expects any number of values.
Definition: array_context.hpp:52
Definition: helpers.hpp:47
std::enable_if<!util::is_functor< T, void(single_context)>::value, base >::type operator<<(T &&t)
<< operator for accepting a real value and appending it to the core builder.
Definition: value_context.hpp:68
A stream context which expects a key, which can later be followed by value, then more key/value pairs...
Definition: array_context.hpp:32
A stream context which appends a single value.
Definition: single_context.hpp:36
core & append(const types::b_double &value)
Appends a BSON double.
core & open_document()
Opens a sub-document within this BSON datum.
type
An enumeration of each BSON type.
Definition: types.hpp:39
value_context(core *core)
Create a value_context given a core builder.
Definition: value_context.hpp:56
core & open_array()
Opens a sub-array within this BSON datum.
A stream context which expects a value, which can later be followed by more key/value pairs...
Definition: value_context.hpp:48
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24