|
MongoDB C++ Driver
mongocxx-3.6.0
|
20 #include <bsoncxx/stdx/string_view.hpp>
22 #include <bsoncxx/config/prelude.hpp>
25 BSONCXX_INLINE_NAMESPACE_BEGIN
27 enum class type : std::uint8_t;
54 namespace bson_value {
90 explicit operator bool()
const;
97 const std::uint8_t* raw()
const;
104 std::uint32_t length()
const;
111 std::uint32_t offset()
const;
129 stdx::string_view key()
const;
136 std::uint32_t keylen()
const;
357 element operator[](stdx::string_view key)
const;
388 BSONCXX_PRIVATE
explicit element(
const std::uint8_t* raw,
389 std::uint32_t length,
390 std::uint32_t offset,
391 std::uint32_t keylen);
396 const std::uint8_t* _raw;
397 std::uint32_t _length;
398 std::uint32_t _offset;
399 std::uint32_t _keylen;
404 BSONCXX_INLINE_NAMESPACE_END
407 #include <bsoncxx/config/postlude.hpp>
A BSON array value.
Definition: types.hpp:181
A BSON ObjectId value.
Definition: types.hpp:246
A BSON UTF-8 encoded string value.
Definition: types.hpp:113
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
A BSON document value.
Definition: types.hpp:149
A BSON null value.
Definition: types.hpp:348
A BSON JavaScript code with scope value.
Definition: types.hpp:496
A BSON 64-bit signed integer value.
Definition: types.hpp:580
binary_sub_type
An enumeration of each BSON binary sub type.
Definition: types.hpp:57
A BSON binary data value.
Definition: types.hpp:206
A BSON Symbol value.
Definition: types.hpp:460
A BSON DBPointer value.
Definition: types.hpp:402
A BSON regex value.
Definition: types.hpp:364
A BSON max-key value.
Definition: types.hpp:651
A BSON replication timestamp value.
Definition: types.hpp:561
A BSON date value.
Definition: types.hpp:289
A BSON signed 32-bit integer value.
Definition: types.hpp:532
A BSON min-key value.
Definition: types.hpp:635
A variant view type that accesses values in serialized BSON documents.
Definition: element.hpp:76
A BSON JavaScript code value.
Definition: types.hpp:421
A BSON Decimal128 value.
Definition: types.hpp:605
type
An enumeration of each BSON type.
Definition: types.hpp:39
A BSON undefined value.
Definition: types.hpp:230
A variant owning type that represents any BSON type.
Definition: value.hpp:39
A BSON boolean value.
Definition: types.hpp:264
A BSON double value.
Definition: types.hpp:88
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
A variant view type that accesses values in serialized BSON arrays.
Definition: element.hpp:36
A view-only variant that can contain any BSON type.
Definition: view.hpp:44