MongoDB C++ Driver
mongocxx-3.6.2
|
21 #include <bsoncxx/array/element.hpp>
22 #include <bsoncxx/document/view.hpp>
24 #include <bsoncxx/config/prelude.hpp>
27 BSONCXX_INLINE_NAMESPACE_BEGIN
97 view(
const std::uint8_t* data, std::size_t length);
104 const std::uint8_t*
data()
const;
158 reference operator*();
159 pointer operator->();
182 BSONCXX_INLINE_NAMESPACE_END
185 #include <bsoncxx/config/postlude.hpp>
friend bool operator==(const const_iterator &, const const_iterator &)
Compare two const_iterators for (in)-equality.
const_iterator end() const
const_iterator begin() const
const_iterator cend() const
const_iterator cbegin() const
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
friend bool operator!=(view, view)
Compare two views for (in)-equality.
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
bool empty() const
Checks if the underlying buffer is empty, i.e.
element operator[](std::uint32_t i) const
Indexes into this BSON array.
view(const std::uint8_t *data, std::size_t length)
Constructs a view from a buffer.
const std::uint8_t * data() const
Access the raw bytes of the underlying array.
friend bool operator==(view, view)
Compare two views for (in)-equality.
std::size_t length() const
Gets the length of the underlying buffer.
view()
Default constructs a view.
friend bool operator!=(const const_iterator &, const const_iterator &)
Compare two const_iterators for (in)-equality.
const_iterator find(std::uint32_t i) const
Indexes into this BSON array.
A const iterator over the contents of an array view.
Definition: view.hpp:153
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