knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <BindingsCursor.h>
Public Member Functions | |
BindingsCursor (const std::shared_ptr< Collection > &collection) | |
bool | nextBindings (const std::shared_ptr< Bindings > &bindings) |
BindingsCursor (const std::shared_ptr< Collection > &collection) | |
bool | nextBindings (const std::shared_ptr< Bindings > &bindings) |
Public Member Functions inherited from knowrob::mongo::Cursor | |
Cursor (const std::shared_ptr< Collection > &collection) | |
Cursor (const Cursor &)=delete | |
~Cursor () | |
const auto & | id () |
void | limit (unsigned int limit) |
void | ascending (const char *key) |
void | descending (const char *key) |
void | filter (const bson_t *query_doc) |
void | aggregate (const bson_t *query_doc) |
bool | next (const bson_t **doc, bool ignore_empty=false) |
bool | erase () |
const auto * | query () const |
Cursor (const std::shared_ptr< Collection > &collection) | |
Cursor (const Cursor &)=delete | |
~Cursor () | |
const auto & | id () |
void | limit (unsigned int limit) |
void | ascending (const char *key) |
void | descending (const char *key) |
void | filter (const bson_t *query_doc) |
void | aggregate (const bson_t *query_doc) |
bool | next (const bson_t **doc, bool ignore_empty=false) |
bool | erase () |
const auto * | query () const |
Protected Member Functions | |
void | setSubstitution (const std::shared_ptr< Bindings > &bindings) |
void | setSubstitution (const std::shared_ptr< Bindings > &bindings) |
Protected Attributes | |
const bson_t * | resultDocument_ |
bson_iter_t | resultIter_ |
bson_iter_t | varIter_ |
bson_iter_t | valIter_ |
A Cursor that iterates over bindings computed through an aggregation pipeline which uses a special field in documents to store variable bindings throughout the pipeline.
Definition at line 18 of file BindingsCursor.h.
|
explicit |
Definition at line 17 of file BindingsCursor.cpp.
|
explicit |
bool BindingsCursor::nextBindings | ( | const std::shared_ptr< Bindings > & | bindings | ) |
bindings | the bindings to fill with the next result. |
Definition at line 73 of file BindingsCursor.cpp.
bool knowrob::mongo::BindingsCursor::nextBindings | ( | const std::shared_ptr< Bindings > & | bindings | ) |
bindings | the bindings to fill with the next result. |
|
protected |
Definition at line 25 of file BindingsCursor.cpp.
|
protected |
|
protected |
Definition at line 29 of file BindingsCursor.h.
|
protected |
Definition at line 30 of file BindingsCursor.h.
|
protected |
Definition at line 32 of file BindingsCursor.h.
|
protected |
Definition at line 31 of file BindingsCursor.h.