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;
85 explicit operator bool()
const;
92 const std::uint8_t* raw()
const;
99 std::uint32_t length()
const;
106 std::uint32_t offset()
const;
124 stdx::string_view key()
const;
131 std::uint32_t keylen()
const;
344 element operator[](stdx::string_view key)
const;
375 BSONCXX_PRIVATE
explicit element(
const std::uint8_t* raw,
376 std::uint32_t length,
377 std::uint32_t offset,
378 std::uint32_t keylen);
383 const std::uint8_t* _raw;
384 std::uint32_t _length;
385 std::uint32_t _offset;
386 std::uint32_t _keylen;
391 BSONCXX_INLINE_NAMESPACE_END
394 #include <bsoncxx/config/postlude.hpp> A BSON signed 32-bit integer value.
Definition: types.hpp:529
A BSON double value.
Definition: types.hpp:85
A BSON Symbol value.
Definition: types.hpp:457
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
binary_sub_type
An enumeration of each BSON binary sub type.
Definition: types.hpp:54
A BSON null value.
Definition: types.hpp:345
A BSON regex value.
Definition: types.hpp:361
A BSON binary data value.
Definition: types.hpp:203
A BSON DBPointer value.
Definition: types.hpp:399
A BSON max-key value.
Definition: types.hpp:648
A BSON UTF-8 encoded string value.
Definition: types.hpp:110
A BSON date value.
Definition: types.hpp:286
A BSON min-key value.
Definition: types.hpp:632
A BSON JavaScript code value.
Definition: types.hpp:418
A BSON JavaScript code with scope value.
Definition: types.hpp:493
A BSON 64-bit signed integer value.
Definition: types.hpp:577
A BSON replication timestamp value.
Definition: types.hpp:558
A BSON document value.
Definition: types.hpp:146
A variant view type that accesses values in serialized BSON documents.
Definition: element.hpp:71
type
An enumeration of each BSON type.
Definition: types.hpp:39
A BSON boolean value.
Definition: types.hpp:261
A variant view type that accesses values in serialized BSON arrays.
Definition: element.hpp:36
A BSON ObjectId value.
Definition: types.hpp:243
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
A BSON undefined value.
Definition: types.hpp:227
A BSON array value.
Definition: types.hpp:178
A variant that can contain any BSON type.
Definition: value.hpp:37
A BSON Decimal128 value.
Definition: types.hpp:602