MongoDB C++ Driver
mongocxx-3.6.2
|
19 #include <bsoncxx/document/view.hpp>
20 #include <bsoncxx/stdx/optional.hpp>
22 #include <mongocxx/config/prelude.hpp>
25 MONGOCXX_INLINE_NAMESPACE_BEGIN
38 enum class type { k_non_tailable, k_tailable, k_tailable_await };
88 MONGOCXX_PRIVATE
cursor(
void* cursor_ptr,
89 bsoncxx::stdx::optional<type> cursor_type =
bsoncxx::stdx::nullopt);
91 class MONGOCXX_PRIVATE impl;
92 std::unique_ptr<impl> _impl;
114 : public std::
iterator<std::input_iterator_tag,
bsoncxx::document::view> {
157 MONGOCXX_PRIVATE
bool is_exhausted()
const;
165 MONGOCXX_INLINE_NAMESPACE_END
168 #include <mongocxx/config/postlude.hpp>
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
Class representing a client connection to MongoDB.
Definition: client.hpp:58
iterator & operator++()
Pre-increments the iterator to move to the next document.
friend bool operator!=(const iterator &, const iterator &)
Compare two iterators for (in)-equality.
Definition: index_view.hpp:32
Class representing an input iterator of documents in a MongoDB cursor result set.
Definition: cursor.hpp:114
const bsoncxx::document::view * operator->() const
Accesses a member of the dereferenced document currently being pointed to.
void operator++(int)
Post-increments the iterator to move to the next document.
const bsoncxx::document::view & operator*() const
Dereferences the view for the document currently being pointed to.
friend bool operator==(const iterator &, const iterator &)
Compare two iterators for (in)-equality.
Class representing a MongoDB database.
Definition: database.hpp:43
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:81
cursor(cursor &&) noexcept
Move constructs a cursor.
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:36
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33