#include <mongocxx/v_noabi/mongocxx/cursor.hpp>
A cursor over the documents returned by a query to a MongoDB server.
Clients can iterate through a cursor::iterator to retrieve results.
Classes | |
| class | iterator |
| An input iterator of documents in a MongoDB cursor result set. More... | |
Public Member Functions | |
| cursor (cursor &&other) noexcept | |
| Move constructs a cursor. | |
| cursor (cursor const &other)=delete | |
| This class is not copyable. | |
| cursor (v1::cursor cursor) | |
| Construct with the mongocxx::v1 equivalent. | |
| ~cursor () | |
| Destroys a cursor. | |
| iterator | begin () |
| A cursor::iterator points to the beginning of any available results. | |
| iterator | end () |
| A cursor::iterator indicating cursor exhaustion, meaning that no documents are available from the cursor. | |
| operator v1::cursor () && | |
| Convert to the mongocxx::v1 equivalent. | |
| operator v1::cursor () const &=delete | |
| This class is not copyable. | |
| cursor & | operator= (cursor &&other) noexcept |
| Move assigns a cursor. | |
| cursor & | operator= (cursor const &other)=delete |
| This class is not copyable. | |
|
noexcept |
Move constructs a cursor.
|
delete |
This class is not copyable.
|
inline |
Construct with the mongocxx::v1 equivalent.
Destroys a cursor.
A cursor::iterator points to the beginning of any available results.
The first call to begin() advances to the next available document. Consecutive calls to begin() only advance to the next available document at most once. The state of all iterators is tracked by the cursor itself, so advancing one iterator advances all iterators.
For a non-tailable cursor, when cursor.begin() == cursor.end(), no more documents can be obtained with the cursor. Calling begin() will always return end().
For a tailable cursor, when cursor.begin() == cursor.end(), no document is currently available. However, a subsequent call to begin() will request for more available documents.
| mongocxx::v_noabi::query_exception | if the query failed |
A cursor::iterator indicating cursor exhaustion, meaning that no documents are available from the cursor.
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.
|
explicitdelete |
This class is not copyable.
This class is not copyable.