initially the iterator is invalid until next() is called.
| 661 | public: |
| 662 | // initially the iterator is invalid until next() is called. |
| 663 | YArrayIterator(ArrayType *arr, bool reverse): |
| 664 | array(arr), |
| 665 | step(reverse ? -1 : 1), |
| 666 | index(reverse ? arr->getCount() : -1) |
| 667 | {} |
| 668 | bool hasNext() const { |
| 669 | return validate(step); |
| 670 | } |