SerializableState* CompoundRegexIterator::getCurrentState() const { SerializableState* s = Iterator::getCurrentState(); for (vector<Iterator*>::const_iterator iter=iterators.begin(); iter!=iterators.end(); ++iter) { s->addValue((*iter)->getCurrentState()); } return s; }
SerializableState* StreamRegexIterator::getCurrentState() const { SerializableState* s = Iterator::getCurrentState(); const long pos = ftell(infile); s->addValue(pos); return s; }
SerializableState* ClassRegexIterator::getCurrentState() const { SerializableState* s = Iterator::getCurrentState(); s->addValue(current); return s; }