#include <FillIterators.h>
Inheritance diagram for RangeIterator:
Changelog
Author: Benno List, Jenny Böhme
Definition at line 21 of file FillIterators.h.
Public Member Functions | |
RangeIterator (int min_, int max_) | |
Constructor. | |
RangeIterator (int min_, int max_, const std::string &name_) | |
virtual int | operator() () const |
Returns iterator value, starting at min. | |
virtual bool | next () |
Increments iterator; returns false if iterator cannot be incremented. | |
virtual bool | reset () |
Resets iterator; returns false if iterator value range is empty. | |
virtual bool | isValid () const |
Returns whether current value of iterator is valid. | |
Protected Member Functions | |
virtual | ~RangeIterator () |
Protected destructor to ensure creation on the heap. | |
Private Attributes | |
int | min |
Minimum value. | |
int | max |
Maximum value. | |
int | index |
Current value. |
|
Constructor.
Definition at line 24 of file FillIterators.h. References index, max, min, and NamedO::str(). |
|
Definition at line 32 of file FillIterators.h. |