19 #include <bsoncxx/document/view.hpp>
20 #include <bsoncxx/stdx/optional.hpp>
22 #include <mongocxx/config/prelude.hpp>
25 inline namespace v_noabi {
27 class search_index_view;
38 enum class type { k_non_tailable, k_tailable, k_tailable_await };
40 class MONGOCXX_API iterator;
90 MONGOCXX_PRIVATE
cursor(
void* cursor_ptr,
91 bsoncxx::stdx::optional<type> cursor_type =
bsoncxx::stdx::nullopt);
93 class MONGOCXX_PRIVATE impl;
94 std::unique_ptr<impl> _impl;
121 using reference = bsoncxx::document::view&;
122 using pointer = bsoncxx::document::view*;
123 using iterator_category = std::input_iterator_tag;
124 using difference_type = std::ptrdiff_t;
167 MONGOCXX_PRIVATE
bool is_exhausted()
const;
178 #include <mongocxx/config/postlude.hpp>
Class supporting operations for MongoDB Client-Side Field Level Encryption.
Definition: client_encryption.hpp:38
Class representing a client connection to MongoDB.
Definition: client.hpp:54
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:85
Class representing an input iterator of documents in a MongoDB cursor result set.
Definition: cursor.hpp:115
friend bool operator!=(const iterator &, const iterator &)
Compare two iterators for (in)-equality.
const bsoncxx::document::view & operator*() const
Dereferences the view for the document currently being pointed to.
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.
iterator & operator++()
Pre-increments the iterator to move to the next document.
bsoncxx::document::view value_type
std::iterator_traits
Definition: cursor.hpp:120
void operator++(int)
Post-increments the iterator to move to the next document.
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:36
cursor(cursor &&) noexcept
Move constructs a cursor.
Class representing a MongoDB database.
Definition: database.hpp:44
Class representing a MongoDB index view.
Definition: index_view.hpp:34
Class representing a MongoDB search index view.
Definition: search_index_view.hpp:19
The top-level namespace for bsoncxx library entities.
Definition: element.hpp:24
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24