#include <query_results.h>
Public Member Functions | |
ResultIterator (boost::shared_ptr< mongo::DBClientConnection > conn, const std::string &ns, const mongo::Query &query, boost::shared_ptr< mongo::GridFS > gfs, bool metadata_only) | |
Constructor. | |
ResultIterator (const ResultIterator &rhs) | |
Copy constructor. | |
ResultIterator () | |
Constructor for past_the_end iterator. | |
Private Member Functions | |
MessageWithMetadata< M >::ConstPtr | dereference () const |
bool | equal (const ResultIterator< M > &other) const |
void | increment () |
Private Attributes | |
CursorPtr | cursor_ |
boost::shared_ptr< mongo::GridFS > | gfs_ |
const bool | metadata_only_ |
boost::optional< mongo::BSONObj > | next_ |
Friends | |
class | boost::iterator_core_access |
Definition at line 54 of file query_results.h.
mongo_ros::ResultIterator< M >::ResultIterator | ( | boost::shared_ptr< mongo::DBClientConnection > | conn, |
const std::string & | ns, | ||
const mongo::Query & | query, | ||
boost::shared_ptr< mongo::GridFS > | gfs, | ||
bool | metadata_only | ||
) |
Constructor.
mongo_ros::ResultIterator< M >::ResultIterator | ( | const ResultIterator< M > & | rhs | ) |
Copy constructor.
Definition at line 68 of file query_results_impl.hpp.
mongo_ros::ResultIterator< M >::ResultIterator | ( | ) |
Constructor for past_the_end iterator.
Definition at line 62 of file query_results_impl.hpp.
MessageWithMetadata< M >::ConstPtr mongo_ros::ResultIterator< M >::dereference | ( | ) | const [private] |
Definition at line 86 of file query_results_impl.hpp.
bool mongo_ros::ResultIterator< M >::equal | ( | const ResultIterator< M > & | other | ) | const [private] |
Definition at line 112 of file query_results_impl.hpp.
void mongo_ros::ResultIterator< M >::increment | ( | ) | [private] |
Definition at line 75 of file query_results_impl.hpp.
friend class boost::iterator_core_access [friend] |
Definition at line 77 of file query_results.h.
CursorPtr mongo_ros::ResultIterator< M >::cursor_ [private] |
Definition at line 85 of file query_results.h.
boost::shared_ptr<mongo::GridFS> mongo_ros::ResultIterator< M >::gfs_ [private] |
Definition at line 87 of file query_results.h.
const bool mongo_ros::ResultIterator< M >::metadata_only_ [private] |
Definition at line 84 of file query_results.h.
boost::optional<mongo::BSONObj> mongo_ros::ResultIterator< M >::next_ [private] |
Definition at line 86 of file query_results.h.