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 };
87 MONGOCXX_PRIVATE
cursor(
void* cursor_ptr,
88 bsoncxx::stdx::optional<type> cursor_type = bsoncxx::stdx::nullopt);
90 class MONGOCXX_PRIVATE impl;
91 std::unique_ptr<impl> _impl;
113 :
public std::iterator<std::input_iterator_tag, bsoncxx::document::view> {
137 void operator++(
int);
150 friend MONGOCXX_API
bool MONGOCXX_CALL operator==(
const iterator&,
const iterator&);
151 friend MONGOCXX_API
bool MONGOCXX_CALL operator!=(
const iterator&,
const iterator&);
156 MONGOCXX_PRIVATE
bool is_exhausted()
const;
164 MONGOCXX_INLINE_NAMESPACE_END
167 #include <mongocxx/config/postlude.hpp> Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:22
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:36
Class representing a client connection to MongoDB.
Definition: client.hpp:52
Class representing a MongoDB database.
Definition: database.hpp:44
Class representing an input iterator of documents in a MongoDB cursor result set. ...
Definition: cursor.hpp:112
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:74