1 #ifndef StRecordITERATOR_H
2 #define StRecordITERATOR_H
5 #include "RecordList.h"
8 class Iterator :
public std::iterator<std::input_iterator_tag, RecordIterator>
10 RecordIterator fField;
11 RecordIterator fFieldEnd;
15 Iterator(
const Iterator& mit) : fField(mit.fField), fFieldEnd(mit.fFieldEnd) { }
16 Iterator(
const RecordIterator &first,
const RecordIterator &last) :fField(first), fFieldEnd(last) {}
19 bool operator==(
const Iterator& rhs) {
return fField==rhs.fField;}
20 bool operator!=(
const Iterator& rhs) {
return fField!=rhs.fField;}
23 bool hasNext()
const {
return fField != fFieldEnd; }