|
MarkLogic Connect
MarkLogic Connect Client API Collection
|
An STL compatible Iterator implementation. More...
#include <SearchResultSet.hpp>
Public Member Functions | |
| MLCLIENT_API | SearchResultSetIterator () |
| Default constructor. | |
| MLCLIENT_API | SearchResultSetIterator (SearchResultSet *set) |
| Creates an iterator over the specified result set. More... | |
| MLCLIENT_API | SearchResultSetIterator (SearchResultSet *set, long pos) |
| Creates an iterator over the specified result set. More... | |
| MLCLIENT_API SearchResultSetIterator * | begin () |
| Returns the iterator start instance. More... | |
| MLCLIENT_API SearchResultSetIterator * | end () |
| Returns the iterator end instance. More... | |
| MLCLIENT_API bool | operator== (const SearchResultSetIterator &other) |
| Equality operator for comparing an iterator instance to end() More... | |
| MLCLIENT_API bool | operator!= (const SearchResultSetIterator &other) |
| Inequality operator for comparing an iterator instance to end() More... | |
| MLCLIENT_API void | operator++ () |
| The iterator increment operator. | |
| MLCLIENT_API const SearchResult | operator* () |
| The dereference operator, which returns the SearchResult at the current position in the SearchResultSet. | |
| MLCLIENT_API SearchResultSetIterator | operator= (const SearchResultSetIterator &other) |
| Copy assignment operator. More... | |
| MLCLIENT_API const SearchResult & | first () const |
| Returns the first result in the result set. More... | |
An STL compatible Iterator implementation.
See the SearchResultSetTest class for a sample use under release/test
| MLCLIENT_API mlclient::SearchResultSetIterator::SearchResultSetIterator | ( | SearchResultSet * | set | ) |
Creates an iterator over the specified result set.
| set | The SearchResultSet to iterator over, starting with the first result |
| MLCLIENT_API mlclient::SearchResultSetIterator::SearchResultSetIterator | ( | SearchResultSet * | set, |
| long | pos | ||
| ) |
Creates an iterator over the specified result set.
| set | The SearchResultSet to iterator over, starting with the pos-th result |
| MLCLIENT_API SearchResultSetIterator* mlclient::SearchResultSetIterator::begin | ( | ) |
Returns the iterator start instance.
| MLCLIENT_API SearchResultSetIterator* mlclient::SearchResultSetIterator::end | ( | ) |
Returns the iterator end instance.
| MLCLIENT_API const SearchResult& mlclient::SearchResultSetIterator::first | ( | ) | const |
Returns the first result in the result set.
| MLCLIENT_API bool mlclient::SearchResultSetIterator::operator!= | ( | const SearchResultSetIterator & | other | ) |
Inequality operator for comparing an iterator instance to end()
| other | The other iterator instance to compare this instance against |
| MLCLIENT_API SearchResultSetIterator mlclient::SearchResultSetIterator::operator= | ( | const SearchResultSetIterator & | other | ) |
Copy assignment operator.
| other | The other iterator to copy state from |
| MLCLIENT_API bool mlclient::SearchResultSetIterator::operator== | ( | const SearchResultSetIterator & | other | ) |
Equality operator for comparing an iterator instance to end()
| other | The other iterator instance to compare this instance against |
1.8.10