MarkLogic Connect
MarkLogic Connect Client API Collection
|
Provides an STL compliant iterator implementation over a ValuesResultSet. More...
#include <ValuesResultSet.hpp>
Public Member Functions | |
MLCLIENT_API | ValuesIterator () |
Default Constructor. | |
MLCLIENT_API | ValuesIterator (ValuesResultSet *set) |
Creates a ValuesIterator that wraps a result set, starting from the first result. More... | |
MLCLIENT_API | ValuesIterator (ValuesResultSet *set, long pos) |
Creates a ValuesIterator that wraps a result set, starting from the specified position. More... | |
MLCLIENT_API ValuesIterator * | begin () |
Returns the start iterator. More... | |
MLCLIENT_API ValuesIterator * | end () |
Returns the iterator end marker. More... | |
MLCLIENT_API bool | operator== (const ValuesIterator &other) |
Whether this instance is the 'same' (same position value) as the other instance. More... | |
MLCLIENT_API bool | operator!= (const ValuesIterator &other) |
Whether this instance is NOT the 'same' (same position value) as the other instance. More... | |
MLCLIENT_API void | operator++ () |
increments this iterator instance's position | |
MLCLIENT_API const ValuesResult | operator* () |
Returns a pointer to the ValuesResult at the current position in the set. More... | |
MLCLIENT_API ValuesIterator | operator= (const ValuesIterator &other) |
copy assignment operator More... | |
MLCLIENT_API const ValuesResult & | first () const |
Returns the first ValuesResult in the result set. More... | |
Provides an STL compliant iterator implementation over a ValuesResultSet.
See the ValuesResultSetTest class for a sample use under release/test
MLCLIENT_API mlclient::ValuesIterator::ValuesIterator | ( | ValuesResultSet * | set | ) |
Creates a ValuesIterator that wraps a result set, starting from the first result.
set | The result set to wrap |
MLCLIENT_API mlclient::ValuesIterator::ValuesIterator | ( | ValuesResultSet * | set, |
long | pos | ||
) |
Creates a ValuesIterator that wraps a result set, starting from the specified position.
set | The result set to wrap |
pos | The position to start iterating from |
MLCLIENT_API ValuesIterator* mlclient::ValuesIterator::begin | ( | ) |
Returns the start iterator.
MLCLIENT_API ValuesIterator* mlclient::ValuesIterator::end | ( | ) |
Returns the iterator end marker.
MLCLIENT_API const ValuesResult& mlclient::ValuesIterator::first | ( | ) | const |
Returns the first ValuesResult in the result set.
MLCLIENT_API bool mlclient::ValuesIterator::operator!= | ( | const ValuesIterator & | other | ) |
Whether this instance is NOT the 'same' (same position value) as the other instance.
other | The ValuesIterator to compare this instance against |
MLCLIENT_API const ValuesResult mlclient::ValuesIterator::operator* | ( | ) |
Returns a pointer to the ValuesResult at the current position in the set.
MLCLIENT_API ValuesIterator mlclient::ValuesIterator::operator= | ( | const ValuesIterator & | other | ) |
copy assignment operator
other | The ValuesIterator to copy |
MLCLIENT_API bool mlclient::ValuesIterator::operator== | ( | const ValuesIterator & | other | ) |
Whether this instance is the 'same' (same position value) as the other instance.
other | The ValuesIterator to compare this instance against |