void PhoneBook::refreshIndex() { int j=1; Iter i = _records.begin(); for ( ; i != _records.end(); i++) i->setIndex(j++); }