SG++-Doxygen-Documentation
|
Iterator object for walking convenient walking over the batches of a sgpp::datadriven::DataSource. More...
#include <DataSourceIterator.hpp>
Public Member Functions | |
DataSourceIterator (DataSource &sampleProvider, size_t counter) | |
Constructor. More... | |
bool | operator!= (const DataSourceIterator &other) const |
Compares two sgpp::datadriven::DataSourceIterator objects for equality. More... | |
Dataset * | operator* () |
Dereferencing an iterator yields the object the iterator currently points to. More... | |
const DataSourceIterator & | operator++ () |
Go to the next sgpp::datadriven::Dataset (if available). More... | |
Iterator object for walking convenient walking over the batches of a sgpp::datadriven::DataSource.
sgpp::datadriven::DataSourceIterator::DataSourceIterator | ( | DataSource & | sampleProvider, |
size_t | counter | ||
) |
Constructor.
sampleProvider | DataSource to iterate over |
counter | current iteration of the sgpp::datadriven::DataSource. |
bool sgpp::datadriven::DataSourceIterator::operator!= | ( | const DataSourceIterator & | other | ) | const |
Compares two sgpp::datadriven::DataSourceIterator objects for equality.
Required for iteration.
other | The other iterator to compare this object to. |
Dataset * sgpp::datadriven::DataSourceIterator::operator* | ( | ) |
Dereferencing an iterator yields the object the iterator currently points to.
References sgpp::datadriven::DataSource::getNextSamples().
const DataSourceIterator & sgpp::datadriven::DataSourceIterator::operator++ | ( | ) |
Go to the next sgpp::datadriven::Dataset (if available).