Entity::Observer implementation, gets called on key insert
| 172 | |
| 173 | // Entity::Observer implementation, gets called on key insert |
| 174 | void onKeyInsert(const std::string& key, EntityKeyValue& value) |
| 175 | { |
| 176 | for (KeyObservers::const_iterator i = _keyObservers.find(key); |
| 177 | i != _keyObservers.upper_bound(key) && i != _keyObservers.end(); |
| 178 | ++i) |
| 179 | { |
| 180 | value.attach(*i->second); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | // Entity::Observer implementation, gets called on Key erase |
| 185 | void onKeyErase(const std::string& key, EntityKeyValue& value) |