Esempio n. 1
0
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;
}
Esempio n. 2
0
SerializableState* StreamRegexIterator::getCurrentState() const {
  SerializableState* s = Iterator::getCurrentState();
  const long pos = ftell(infile);
  s->addValue(pos);
  return s;
}
Esempio n. 3
0
SerializableState* ClassRegexIterator::getCurrentState() const {
  SerializableState* s = Iterator::getCurrentState();
  s->addValue(current);
  return s;
}