| 96 | |
| 97 | |
| 98 | void Object::syncKeys(const KeyList& keys) |
| 99 | { |
| 100 | if(_preserveInsOrder) |
| 101 | { |
| 102 | // update iterators in _keys to point to copied _values |
| 103 | for(KeyList::const_iterator it = keys.begin(); it != keys.end(); ++it) |
| 104 | { |
| 105 | ValueMap::const_iterator itv = _values.find((*it)->first); |
| 106 | poco_assert (itv != _values.end()); |
| 107 | _keys.push_back(itv); |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | |
| 113 | Var Object::get(const std::string& key) const |