MongoDB C++ Driver mongocxx-3.0.3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mongocxx::cursor::iterator Class Reference

Class representing an input iterator of documents in a MongoDB cursor result set. More...

#include <cursor.hpp>

+ Inheritance diagram for mongocxx::cursor::iterator:

Public Member Functions

const bsoncxx::document::viewoperator* () const
 Dereferences the view for the document currently being pointed to.
 
const bsoncxx::document::viewoperator-> () const
 Accesses a member of the dereferenced document currently being pointed to.
 
iteratoroperator++ ()
 Postfix increments the iterator to move to the next document.
 
void operator++ (int)
 Prefix increments the iterator to move to the next document.
 

Detailed Description

Class representing an input iterator of documents in a MongoDB cursor result set.

Member Function Documentation

◆ operator++() [1/2]

iterator & mongocxx::cursor::iterator::operator++ ( )

Postfix increments the iterator to move to the next document.

Exceptions
mongocxx::query_exceptionif the query failed

◆ operator++() [2/2]

void mongocxx::cursor::iterator::operator++ ( int  )

Prefix increments the iterator to move to the next document.

Exceptions
mongocxx::query_exceptionif the query failed

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const iterator ,
const iterator  
)
friend

Compare two iterators for (in)-equality.

◆ operator==

bool operator== ( const iterator ,
const iterator  
)
friend

Compare two iterators for (in)-equality.


The documentation for this class was generated from the following file: