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