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 };
75 MONGOCXX_PRIVATE
cursor(
void* cursor_ptr);
77 class MONGOCXX_PRIVATE impl;
78 std::unique_ptr<impl> _impl;
85 : public std::
iterator<std::input_iterator_tag, bsoncxx::document::view> {
133MONGOCXX_INLINE_NAMESPACE_END
136#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:49
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:85
friend bool operator!=(const iterator &, const iterator &)
Compare two iterators for (in)-equality.
iterator & operator++()
Postfix 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)
Prefix 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:43