19#include <bsoncxx/document/view.hpp>
21#include <mongocxx/config/prelude.hpp>
24MONGOCXX_INLINE_NAMESPACE_BEGIN
37 enum class type { k_non_tailable, k_tailable, k_tailable_await };
78 MONGOCXX_PRIVATE
cursor(
void* cursor_ptr);
80 class MONGOCXX_PRIVATE impl;
81 std::unique_ptr<impl> _impl;
94 : public std::
iterator<std::input_iterator_tag,
bsoncxx::document::view> {
142MONGOCXX_INLINE_NAMESPACE_END
145#include <mongocxx/config/postlude.hpp>
A read-only, non-owning view of a BSON document.
Definition view.hpp:33
Class representing a client connection to MongoDB.
Definition client.hpp:52
Class representing server side document groupings within a MongoDB database.
Definition collection.hpp:74
Class representing an input iterator of documents in a MongoDB cursor result set.
Definition cursor.hpp:94
friend bool operator!=(const iterator &, const iterator &)
Compare two iterators for (in)-equality.
iterator & operator++()
Pre-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.
void operator++(int)
Post-increments the iterator to move to the next document.
const bsoncxx::document::view * operator->() const
Accesses a member of the dereferenced document currently being pointed to.
friend bool operator==(const iterator &, const iterator &)
Compare two iterators for (in)-equality.
Class representing a pointer to the result set of a query on a MongoDB server.
Definition cursor.hpp:35
cursor(cursor &&) noexcept
Move constructs a cursor.
Class representing a MongoDB database.
Definition database.hpp:44
Top level namespace for MongoDB C++ BSON functionality.
Definition element.hpp:24
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:22