MongoDB C++ Driver
mongocxx-3.7.0
|
20 #include <bsoncxx/document/element.hpp>
22 #include <bsoncxx/config/prelude.hpp>
25 BSONCXX_INLINE_NAMESPACE_BEGIN
28 namespace bson_value {
46 using document::element::operator bool;
75 using document::element::operator[];
86 BSONCXX_PRIVATE
explicit element(
const std::uint8_t* raw,
89 std::uint32_t keylen);
124 BSONCXX_INLINE_NAMESPACE_END
127 #include <bsoncxx/config/postlude.hpp>
types::b_null get_null() const
Getter for elements of the b_null type.
types::b_bool get_bool() const
Getter for elements of the b_bool type.
types::b_dbpointer get_dbpointer() const
Getter for elements of the b_dbpointer type.
types::b_regex get_regex() const
Getter for elements of the b_regex type.
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
stdx::string_view key() const
Getter for the element's key.
types::b_minkey get_minkey() const
Getter for elements of the b_minkey type.
types::b_timestamp get_timestamp() const
Getter for elements of the b_timestamp type.
A read-only, non-owning view of a BSON document.
Definition: view.hpp:40
BSONCXX_DEPRECATED types::b_string get_utf8() const
Getter for elements of the b_string type.
std::uint32_t length() const
Getter for length of the raw bson bytes the element points to.
types::b_string get_string() const
Getter for elements of the b_string type.
types::b_double get_double() const
Getter for elements of the b_double type.
bsoncxx::type type() const
Getter for the type of the element.
types::b_int32 get_int32() const
Getter for elements of the b_int32 type.
const std::uint8_t * raw() const
Getter for the raw bson bytes the element points to.
types::b_codewscope get_codewscope() const
Getter for elements of the b_codewscope type.
types::b_symbol get_symbol() const
Getter for elements of the b_symbol type.
types::b_maxkey get_maxkey() const
Getter for elements of the b_maxkey type.
types::b_int64 get_int64() const
Getter for elements of the b_int64 type.
A variant view type that accesses values in serialized BSON documents.
Definition: element.hpp:76
std::uint32_t keylen() const
Getter for the element's key length.
types::b_date get_date() const
Getter for elements of the b_date type.
types::b_array get_array() const
Getter for elements of the b_array type.
types::b_document get_document() const
Getter for elements of the b_document type.
types::b_code get_code() const
Getter for elements of the b_code type.
types::b_decimal128 get_decimal128() const
Getter for elements of the b_decimal128 type.
types::b_binary get_binary() const
Getter for elements of the b_binary type.
types::bson_value::view get_value() const
Getter for a types::bson_value::view variant wrapper of the value portion of the element.
types::b_oid get_oid() const
Getter for elements of the b_oid type.
A variant view type that accesses values in serialized BSON arrays.
Definition: element.hpp:42
types::b_undefined get_undefined() const
Getter for elements of the b_undefined type.
A view-only variant that can contain any BSON type.
Definition: view.hpp:44
std::uint32_t offset() const
Getter for the offset into the raw bson bytes the element points to.