54 using v_noabi::document::element::operator bool;
68#pragma push_macro("X")
70#define X(_name, _value) using v_noabi::document::element::get_##_name;
82 using v_noabi::document::element::operator[];
106 return !(lhs == rhs);
111 return !(lhs == rhs);
142using v_noabi::array::operator==;
143using v_noabi::array::operator!=;
Declares bsoncxx::v_noabi::array::element.
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
A non-owning, read-only BSON element.
Definition view.hpp:84
A variant view type that accesses values in serialized BSON arrays.
Definition element.hpp:46
friend bool operator==(element const &lhs, v_noabi::types::bson_value::view const &rhs)
Convenience methods to compare for equality against a bson_value.
Definition element.hpp:95
bool operator==(v_noabi::types::bson_value::view const &lhs, element const &rhs)
Convenience methods to compare for equality against a bson_value.
Definition element.hpp:100
bool operator!=(v_noabi::types::bson_value::view const &lhs, element const &rhs)
Convenience methods to compare for equality against a bson_value.
Definition element.hpp:110
bool operator!=(element const &lhs, v_noabi::types::bson_value::view const &rhs)
Convenience methods to compare for equality against a bson_value.
Definition element.hpp:105
A variant view type that accesses values in serialized BSON documents.
Definition element.hpp:52
v_noabi::types::bson_value::view get_value() const
Getter for a types::bson_value::view variant wrapper of the value portion of the element.
std::uint32_t keylen() const
Getter for the element's key length.
Definition element.hpp:117
v1::stdx::string_view key() const
Getter for the element's key.
v_noabi::types::bson_value::value type_value() const
Equivalent to get_owning_value() const.
std::uint8_t const * raw() const
Getter for the raw bson bytes the element points to.
Definition element.hpp:90
std::uint32_t length() const
Getter for length of the raw bson bytes the element points to.
Definition element.hpp:99
std::uint32_t offset() const
Getter for the offset into the raw bson bytes the element points to.
Definition element.hpp:108
element()=default
Construct an invalid element.
v_noabi::types::bson_value::view type_view() const
Equivalent to get_value() const.
v_noabi::types::bson_value::value get_owning_value() const
Getter for a types::bson_value::value variant wrapper of the value portion of the element....
v_noabi::type type() const
Getter for the type of the element.
A non-owning variant that can contain any BSON type.
Definition view.hpp:62
Provides bsoncxx::v_noabi::document::element.
Declares entities representing a BSON array.
Declares entities representing a BSON array.
bool operator==(element const &lhs, v_noabi::types::bson_value::view const &rhs)
Convenience methods to compare for equality against a bson_value.
Definition element.hpp:95
Declares entities whose ABI stability is NOT guaranteed.
v1::element::view to_v1(v_noabi::array::element const &v)
Convert to the bsoncxx::v1 equivalent of v.
Definition element.hpp:132
The top-level namespace within which all bsoncxx library entities are declared.
Provides bsoncxx::v1::element::view.
Declares enumerations identifying the type of a BSON element.
#define BSONCXX_V1_TYPES_XMACRO(X)
X-macro over the name and value of BSON types.
Definition id-fwd.hpp:44
Declares bsoncxx::v_noabi::array::view.
Declares bsoncxx::v_noabi::types::bson_value::view.